-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Back in #6528 @cdruan extended the Markdown plugin to understand wikitext syntax. The way it was done is elegant: the Markdown is parsed into plain HTML which is then passed to the existing wikitext parser. The end user benefit is clear: they can use widgets and other TW syntax within Markdown syntax.
Perhaps it would be useful to try to do the opposite, and implement some selected Markdown syntax in wikitext. For the most part we use different syntax, and there is little overlap - the obvious one is #
at the start of a line.
I don't think the reparsing approach of #6528 is appropriate here. We'd just implement ordinary wikitext rules for the new syntax.
Sadly most Markdown character formatting syntax does clash (eg Markdown bold at the start of a line looks like a list to TiddlyWiki. But some of the Markdown syntax we might consider:
- Markdown link syntax
[Caption](https://cats.com)
- Markdown image syntax

- Markdown linked image syntax
[](https://cats.com)
- Markdown link syntax
<https://cats.com>
or<[email protected]>
- Markdown numbered lists using
<digit><period>
at the start of the line (eg3. Third item
) -
and+
for bulleted lists- Markdown syntax using indentation of four spaces or a tab to mark code blocks
- While we can't use the ordinary
#
syntax for Markdown headings, we could implement the alternate syntax where headings are indicated by dashes or equals signs on the next line
I'm not sure whether that's a worthwhile subset because I don't have much use for Markdown, but I'd be interested in what others think.