markdown-to-asciidoc icon indicating copy to clipboard operation
markdown-to-asciidoc copied to clipboard

Codespan markers are not doubled when necessary

Open Vampire opened this issue 11 months ago • 3 comments

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.

Vampire avatar Mar 12 '24 13:03 Vampire

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.
    """

bodiam avatar Apr 11 '24 14:04 bodiam

Can't you just copy the concrete example I gave into the scenario yourself?

Vampire avatar Apr 11 '24 14:04 Vampire

  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
    """

Vampire avatar Apr 11 '24 14:04 Vampire