Skip to content

markdown pre-formatted - ``` - is rendered as a single line #4841

@poulhs

Description

@poulhs

Forum: Issue with rendering markdown of formated text in NOTE

Using markdown and ``` to mark text as pre-formatted is wrongly rendered as one single line.

A note containing

```
a
b
```

is expected to be rendered as two lines

a
b

and not as a single line:

ab

The data presented in the GEDCOM view is correct:

1 BIRT
2 DATE 01 JAN 1850
2 NOTE Markdown
3 CONT
3 CONT 3 CONT a 3 CONT b 3 CONT

but the HTML is incorrect:

<td class>
<div class="mb-2">
<p><em>Markdown</em></p><pre><code>ab</code></pre> </div>
</td>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions