qt5base-lts/tests/auto/gui/text/qtextmarkdownwriter/data
Shawn Rutledge 5e55297ee0 Markdown writer: indent fence consistent with code block
- Under a list item, we've been indenting code blocks:
  ```
  int main() ...
  ```
- But it's also ok *not* to indent (and github handles that better):
```
int main() ...
```
- There was a bug that when the code is not indented, the fence would be
  indented anyway:
  ```
int main() ...
  ```
  and that was not OK, neither for md4c nor for github.

Now with this change, either way is rewritable: you can read markdown
into QTextDocument, make small edits and write it back out again, with
the indentation being preserved (the code block is either part of the
list item, thus indented, or else it's outside the list completely).

Pick-to: 6.2
Task-number: QTBUG-92445
Change-Id: I5f51899e28ba9f09b88a71e640d9283416cce171
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2021-10-14 19:57:09 +02:00
..
blockquotes.md Markdown writer: omit space after opening code block fence 2020-04-20 21:08:32 +02:00
example.md Support the markdown underline extension 2020-11-07 09:35:11 +01:00
headingsAndLists.md QTextMarkdownImporter: don't keep heading level on following list item 2019-05-24 15:37:05 +02:00
links.md Markdown importer: properly set hyperlinks 2020-02-03 14:58:06 +01:00
listsAndCodeBlocks.md Markdown writer: indent fence consistent with code block 2021-10-14 19:57:09 +02:00
wordWrap.md QTextMarkdownWriter: fix some bad cases with word wrap 2019-05-24 15:37:05 +02:00