markdown-to-asciidoc
markdown-to-asciidoc copied to clipboard
Codespan markers are not doubled when necessary
In some cases code span marker need to be doubled in AsciiDoc.
When for example transforming `RegularFile`s
, it must be transformed to ``RegularFile``s
, or it is not rendered as code but as regular text.
Hi @Vampire , can you provide a testcase in this format?
Scenario: Render a description list
Given the Markdown source
"""
Apple
: Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
"""
When it is converted to AsciiDoc
Then the result should match the AsciiDoc source
"""
Apple::
Pomaceous fruit of plants of the genus Malus in
the family Rosaceae.
"""
Can't you just copy the concrete example I gave into the scenario yourself?
Scenario: Codespan markers are doubled when necessary
Given the Markdown source
"""
`RegularFile`
`RegularFile`s
"""
When it is converted to AsciiDoc
Then the result should match the AsciiDoc source
"""
`RegularFile`
``RegularFile``s
"""