mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 14:54:51 +00:00
8d9dc0cd29
* markdown: Don't emit paragraph tags when a paragraph is "tight".
Motivation: Since the upgrade to remarkable.js (#3876), lists are rendered as
HTML like this:
```
<ul>
<li><p>One</p></li>
<li><p>Two</p></li>
<li><p>Three</p></li>
</ul>
```
The paragraph nodes insert blocks that break the visual flow of the list and are
unexpected e.g. compared to WikiText markup's rendering of a bulleted list.
Solution: remarkable.js annotates certain paragraph nodes as "tight", and in the
bulleted list case, the paragraph nodes wrapping the text of each list item are
marked tight.
remarkable uses the tight property to [elide paragraph tags in its
renderer](
|
||
---|---|---|
.. | ||
EditorToolbar | ||
files | ||
images | ||
config_breaks.tid | ||
config_linkify.tid | ||
config_linkNewWindow.tid | ||
config_quotes.tid | ||
config_renderWikiText.tid | ||
config_renderWikiTextPragma.tid | ||
config_typographer.tid | ||
docs_type_markdown.tid | ||
new-markdown.tid | ||
plugin.info | ||
readme.tid | ||
usage.tid | ||
wrapper.js |
title: $:/plugins/tiddlywiki/markdown/readme This is a TiddlyWiki plugin for parsing Markdown text, using the [[Remarkable|https://github.com/jonschlinkert/remarkable]] library. If the KaTeX TiddlyWiki plugin is installed, KaTeX support is enabled using the [[remarkable-katex|https://github.com/bradhowes/remarkable-katex]] Remarkable plugin. It is completely self-contained, and doesn't need an Internet connection in order to work. It works both in the browser and under Node.js. [[Source code|https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown]]