qt5base-lts/tests/auto/gui/text/qtextmarkdownwriter/data
Shawn Rutledge b3cc9403c4 QTextMarkdownWriter: write fenced code blocks with language declaration
MD4C now makes it possible to detect indented and fenced code blocks:
https://github.com/mity/md4c/issues/81
Fenced code blocks have the advantages of being easier to write by hand,
and having an "info string" following the opening fence, which is commonly
used to declare the language.

Also, the HTML parser now recognizes tags of the form
<pre class="language-foo">
which is one convention for declaring the programming language
(as opposed to human language, for which the lang attribute would be used):
https://stackoverflow.com/questions/5134242/semantics-standards-and-using-the-lang-attribute-for-source-code-in-markup
So it's possible to read HTML and write markdown without losing this information.

It's also possible to read markdown with any type of code block:
fenced with ``` or ~~~, or indented, and rewrite it the same way.

Change-Id: I33c2bf7d7b66c8f3ba5bdd41ab32572f09349c47
Reviewed-by: Gatis Paeglis <gatis.paeglis@qt.io>
2019-06-04 08:01:34 +02:00
..
blockquotes.md QTextMarkdownWriter: write fenced code blocks with language declaration 2019-06-04 08:01:34 +02:00
example.md
headingsAndLists.md QTextMarkdownImporter: don't keep heading level on following list item 2019-05-24 15:37:05 +02:00
wordWrap.md QTextMarkdownWriter: fix some bad cases with word wrap 2019-05-24 15:37:05 +02:00