qt5base-lts/tests/auto/gui/text
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
..
qabstracttextdocumentlayout Make imageAt and formatAt more robus against different font metrics 2016-08-12 03:59:23 +00:00
qcssparser Merge remote-tracking branch 'origin/5.12' into dev 2018-10-25 07:21:53 +02:00
qfont Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
qfontcache Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
qfontdatabase Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
qfontmetrics Fix text shifting vertically when elided 2018-12-21 10:27:12 +00:00
qglyphrun Merge remote-tracking branch 'origin/5.12' into dev 2019-01-04 07:33:14 +01:00
qinputcontrol Accept all formatting characters as valid input 2017-01-26 10:59:49 +00:00
qrawfont [Windows] Fixed regression when creating fallback fonts 2019-02-14 08:01:05 +00:00
qstatictext Prefix QTextStream operators with Qt:: in tests 2019-05-03 09:36:36 +00:00
qsyntaxhighlighter tst_qsyntaxhighlighter: fix no-op QTRY_VERIFY check 2019-01-16 14:23:42 +00:00
qtextblock Updated license headers 2016-01-21 18:55:18 +00:00
qtextcursor Fix crash when detaching dangling QTextCursor 2018-09-27 06:51:37 +00:00
qtextdocument QtGui/Text: mark obsolete functions as deprecated 2019-01-28 19:37:33 +00:00
qtextdocumentfragment Tests: Fix some warnings about deprecated functions not under test 2019-05-27 15:29:16 +02:00
qtextdocumentlayout Fix page breaking with large images 2019-04-26 18:21:18 +00:00
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Tests: Fix some warnings about deprecated functions not under test 2019-05-27 15:29:16 +02:00
qtextlist Tests: Fix some warnings about deprecated functions not under test 2019-05-27 15:29:16 +02:00
qtextmarkdownimporter Markdown: blockquotes, code blocks, and generalized nesting 2019-05-08 20:28:53 +00:00
qtextmarkdownwriter QTextMarkdownWriter: write fenced code blocks with language declaration 2019-06-04 08:01:34 +02:00
qtextobject Updated license headers 2016-01-21 18:55:18 +00:00
qtextodfwriter Add more formatting to QTextDocumentWriter when writing ODF files 2018-04-11 18:44:31 +00:00
qtextpiecetable Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qtextscriptengine qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qtexttable Fix QTextTable:insertRows() for tables with spanning cells 2019-02-09 08:01:08 +00:00
qzip update testdata 2016-08-31 10:00:29 +00:00
text.pro Markdown: fix several issues with lists and continuations 2019-05-08 20:28:28 +00:00