Strongly supports the motion.
I want to MOAN.
Moan that markup systems have emerged that differ but should be the same.
Moan that a universal etiquette on simple markup is not there. It unnecessarily complicates things that the simpler markups are not orthographically congruent.
Moan that TiddlyWiki isn't providing the needed Multi-Markup support is not there yet.
Hoping that TiddlyWiki will take simple Markup and downs out of the dark ages into a universal step forward.
Josiah: TW isn't providing the needed Multi-Markup support is not there yet.
Oh, ... we are close. ... BUT if we would make commonmark a first class citicen, it would break backwards compatibility.
we would make commonmark [1] markdown [2] a 100% subset [3] of the TiddlyWiki syntax?
I'm a pragmatist.
I simply do NOT believe that the 600 or so strictures that CommonMarkup syntax say are essential are actually essential for most practical work. It looks like a tall-story. When you look into it is boils down to something more cope-able, I think.
I am pretty convinced that TW can get very close to a "universal markup" for coping with most of the the variant Wiki-text versions in real use. And I already know from playing with BJ's "pre-parser" that that there is immense flex in what TW can do towards creating "User Defined Markup" quite easily.
On this particular issue I'm happy to help as its one of the few things I have competence on.
Best wishes
Josiah
On Tuesday, 12 December 2017 16:42:00 UTC+1, Jeremy Ruston wrote:Mario said:we would make commonmark [1] markdown [2] a 100% subset [3] of the TiddlyWiki syntax?I’d be very interested if that were possible. It would potentially allow us to dispense with the current Markdown parser, which has significantly limited capabilities compared to native wikitext.I also agree with Josiah’s point that a worthy longer term goal is to make TiddlyWiki a meta-markup system that allows end users to create their own markup parse rules. However, the complexity of the CommonMark specification suggests to me that it wouldn’t be possible to create a practical parser entirely declaratively. In other words, I think the complexities of arbitrary markup may well require arbitrary computational capabilities to parse.But, of course, even if we couldn’t create a 100% spec compliant CommonMark parser declaratively, it would still be a very useful thing to have.Best wishesJeremy
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/94321674-7dca-464a-abb2-aee48340beea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I simply do NOT believe that the 600 or so strictures that CommonMarkup syntax say are essential are actually essential for most practical work. It looks like a tall-story. When you look into it is boils down to something more cope-able, I think.That’s rather my point: a putative declarative meta-markup couldn’t achieve 100% compatibility, but that even partial compatibility would be useful. But that’s not what Mario originally proposed.
So imo it's not really needed to get a 100% compatibility. .. As long as we can manage the MD-zoo we would be able to create
What if ... we would make commonmark [1] markdown [2] a 100% subset [3] of the TiddlyWiki syntax?
GFM is a strict superset of CommonMark. All the features which are supported in GitHub user content and that are not specified on the original CommonMark Spec are hence known as extensions, and highlighted as such.
we would make commonmark [1] markdown [2] a 100% subset [3] of the TiddlyWiki syntax?
Rather than CommonMark wouldn't Github Flavoured Markdown (GFM) be a better aim? Its ...
- compliant with CommonMark;
- adds tables and other things Markdown does not do;
- better services existing TW users who also use GitHub.
I do have a finished plugin. ... I just have to prepare the edition.
... BUT ...
I want to get rid of external libraries, most of the time, they don't integrate well with TWs possibilities.
... To me HTML is an essential skill and I see no harm choosing it when it suits. With all the talk of alternate markup/down I hope we do not compromise TiddlyWikis direct relationship to the pervasive standards on the internet such as HTML/CSS especially since that is how the tiddlywiki is rendered.
The problem with HTML is only readability (the LOGIC is great, the visuals of the actual code are crap). I'd far rather have my originating stuff in TiddlyWiki / Markdown / MediaWiki syntax IF i don't have true WYSIWYG in the editor. Once I have that I don't care
My Point is that html markup is often more powerful when dealing with more sophisticated objects such as tables and simplifies the creation process because elements are more easily duplicated and there is rudimentary error checking and structure, CSS insertion points etc..
To me HTML is an essential skill and I see no harm choosing it when it suits.
With all the talk of alternate markup/down I hope we do not compromise TiddlyWikis direct relationship to the pervasive standards on the internet such as HTML/CSS especially since that is how the tiddlywiki is rendered.
Theoretically would most markdown standards have documented processes to markup up and down to/from HTML? If this was the case could we take any HTML and apply any markdown to it?
My idea is we could produce any content that you can see on the screen, Wiki Text, HTML, and any that works in Tiddlywiki, it is then rendered in HTML and then generate markdown texts that can then be transferred into their own tools.
An Example is I would Create a chapter in TiddlyWiki using any method I choose, Display it (HTML) then choose to generate Wiki media markdown which I then save, copy or paste into Wiki Media. Perhaps we could harvest content in HTML from anywhere, Save it in Tiddlywiki and generate alternative markdown from it, even to its orignnal mark down.
The all we have to do is translate any markdown to HTML and back to any markdown. Which presumably is already done for most markdown formats.
Practically WYSIWYIG is part of this.
First chorus: Your plugin is a full faultless CommonMark?
Practically WYSIWYIG is part of this.
First chorus: Your plugin is a full faultless CommonMark?
It uses the markdown-it library, which supports several MD variants. I did include config options for commonmark, gfm, and markdown-it native.
Implementing MD as a first class citicen, for the basic writing syntax, would imo lower the entry-level for new users quite a bit.
My apologies if I messed up your thread :-(. Hopefully I didn't. It was not intentional.
I will respond separately about why I think WYSIWYG is related in some ways to this thread.
The all we have to do is translate any markdown to HTML and back to any markdown. Which presumably is already done for most markdown formats.
WYSIWIYG is definitely related to any other text based markup system. ... But it is a completely different philosophy. ... and discussions, between those different point of views, can heat up, very quickly. ...
SGML was originally designed to enable the sharing of machine-readable large-project documents in government, law, and industry. Many such documents must remain readable for several decades—a long time in the information technology field
...source WikiPedia
<div author="JeremyRuston" core-version=">=5.0.0" dependents="$:/themes/tiddlywiki/snowwhite" description="Centralises the story river" name="Centralised" plugin-type="theme" title="$:/themes/tiddlywiki/centralised" type="application/json" version="5.1.16-prerelease">
<pre>{
html-escaped content there < is encoded as < and > is > ....
</pre>
</div>
$:/themes/tiddlywiki/centralised were I replaced the content with a 1 liner.
The purpose of JsonML is to provide a compact format for transporting XML-based markup as JSON which allows it to be losslessly converted back to its original form.
source jsonml.org
If you open: https://tiddlywiki.com/prerelease/ and copy the following text into the tiddler.
* line 1
* element 2
Open the preview panel
and select parse-tree;
Mode:block
[
{
"type": "element",
"tag": "ul",
"children": [
{
"type": "element",
"tag": "li",
"children": [
{
"type": "text",
"text": "line 1"
}
]
},
{
"type": "element",
"tag": "li",
"children": [
{
"type": "text",
"text": "element 2"
}
]
}
]
}
]
For this example the widget-tree looks similar, but if you enter {{HelloThere}} you'll get a huge difference between parse and widget-tree. Those *-tree like formats are relatively easy to handle by algorithms. ...
The problem with the TW parse-tree at the moment is, that it "looses information". May be, because of performance reasons. Also implementation speed is faster, and complexity is much less, if you skip functions.
So we actually can't use it, as a storage format. ...
BUT
If we would solve that problem, we could transform TW-syntax <-> Markdown <-> HTML <-> TW-syntax <-> [you name it]
Such an itermediate storage fromat would be called an AST Abstract Syntax Tree. While ASTs are known for programming languages, the mechanism we need is the same. Our parse-tree and widget-tree basically are ASTs...
Some transformation paths exist and some _don't_. eg:
- tw-syntax -> AST -> HTML ... exists
- HTML -> AST -> tw-syntax ... doesn't exist
hope that helps
have fun!
mario
- tw-syntax -> AST -> HTML ... exists
- HTML -> AST -> tw-syntax ... doesn't exist
The pandoc project is a very good example / implementaiton for this workflow. .. With the exact same problems.
Yet encouraging PANDOC to support TiddlyWiki format would also be a decent thing.