https://bugs.documentfoundation.org/show_bug.cgi?id=171000
Bug ID: 171000
Summary: Markdown: over-escaping characters inside code spans,
breaking round-trip integrity
Product: LibreOffice
Version: 26.2.0.3 release
Hardware: All
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Description:
In the new Markdown file-format feature - which is already very useful - code
span (section within back-quotes ) are escaped when saving, even though they
should be left as literal.
Consequently, Libreoffice incorrectly reloads a file that it itself just saved.
Steps to Reproduce:
Create a simple Markdown file with a code span (back-quotes), that contains
underscores (or curly braces, etc).
$echo '`block_code{}`' > /tmp/test1.md
Open /tmp/test1.md in LibreOffice (version 26.2). The document renders
correctly in the UI initially.
Save the document (Overwrite the existing file, confirming Markdown format),
then File->Reload. New, incorrect backslashes appeared.
$cat /tmp/test1.md
`block\_code\{\}`
The export filter has added unnecessary backslashes to escape characters that
should be literal within a code span.
Actual Results:
$ cat /tmp/test1.md
`block\_code\{\}`
Expected Results:
$ cat /tmp/test1.md
`block_code{}`
Reproducible: Always
User Profile Reset: No
Additional Info:
.
--
You are receiving this mail because:
You are the assignee for the bug.