Skip to content

Markdown for code fences in comments via backticks might produce invalid html #39

@kevlar700

Description

@kevlar700

https://forum.ada-lang.io/t/the-new-gnatdoc-is-available-lets-create-a-docs-ada-dev-website-mabye/118/43

Opening an issue as requested by @godunko

The following comment ran through gnatdoc

-- Z85_Alphabet : constant BToA.Alphabet_85 := -- "0123456789" & -- "abcdefghij" & -- "klmnopqrst" & -- "uvwxyzABCD" & -- "EFGHIJKLMN" & -- "OPQRSTUVWX" & -- "YZ.-:+=^!/" & -- "*?&<>()[]{" & -- "}@%$#";

produces the following line

Z85_Alphabet : constant BToA.Alphabet_85 := "0123456789" & "abcdefghij" & "klmnopqrst" & "uvwxyzABCD" & "EFGHIJKLMN" & "OPQRSTUVWX" & "YZ.-:+=^!/" & "*?&<>()[]{" & "}@%$#";

Should backticks in a comment keep the line formatting but collapse the lines or keep it formatted as shown in the comment?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions