New Markdown extension #354
Replies: 6 comments 2 replies
-
+1 for a change. If I understand right Parsedown even has some kind of extension feature, maybe this can be helpful for Yellow to implement special tags if widely requested by users. |
Beta Was this translation helpful? Give feedback.
-
Just noticed that Parsedown is not able to parse element attributes, e.g.:
This works in the markdown parser, while Parsedown puts the last bracket as normal text after the link. Parsedown Extra apparently only recognizes ID and class attributes, but no special attributes like in the above example. See also: erusev/parsedown-extra#120 |
Beta Was this translation helpful? Give feedback.
-
Latest release added strikethrough and task list to the default Markdown parser. Now they have a (more or less) identical feature set. |
Beta Was this translation helpful? Give feedback.
-
Latest releases added better support for notices, CSS and HTML. Making notices:
Using CSS:
Using HTML:
Please note that content files will be filtered trough a HTML whitelist. This means unsafe elements/attributes will be removed automatically. In case you're curious, all safe elements/attributes are defined in the core in function |
Beta Was this translation helpful? Give feedback.
-
Hello, > excerpt 1 > excerpt 2 become the the same thing as > excerpt 1 I discover that, here on github, it’s different :
is different from
As in Mark Text, the (great) markdown editor I (currently) use. Maybe I’m wrong, but I wasn’t able to test with the other parser mentioned above… |
Beta Was this translation helpful? Give feedback.
-
@terhemis Thanks for reporting. This is a rather historical bug since the markdown extension follows the original MarkdownExtra code in most parts. An updated Markdown extension has just been uploaded which should fix consecutive blockquotes. |
Beta Was this translation helpful? Give feedback.
-
The current Markdown extension is based on Markdown Extra by Michel Fortin. I made an alternative extension based on Parsedown Extra by Emanuil Rusev. It supports strikethrough and task lists, these are additional Markdown features which do not exist in all Markdown implementations.
Example page with additional Markdown features:
Settings for switching Markdown parser:
Parser: markdown
= Markdown extension, based on Markdown ExtraParser: parsedown
= Parsedown extension, based on Parsedown ExtraI think performance and features are similar. Parsedown Extra is about 20% smaller than Markdown Extra. Parsedown Extra has some known problems, although all implementations produce slightly different HTML output, there are features which are incorrect or missing. At the moment Parsedown has problems with footnotes, definition lists and special attributes.
Any thoughts?
Beta Was this translation helpful? Give feedback.
All reactions