Skip to content

Issues with "export to markdown" #156

@JLuc

Description

@JLuc

In an MD export

  • underscores _ in a code block are escaped and appear as \_ in produced md rendering
  • a line that starts with spaces then dash then space produces a code block (when it isnt code in pad)
  • A link in a bold line is corrupted in the exported md
  • issue with export of a bolded list item

Example for the 2 first issues

https://annuel2.framapad.org/p/test_export

Origin content :

Bonjour 'test_truc' comment allez-vous ?
    - un texte de style "Normal" précédée d'espace dans le source qui en markdown est transformé en code 
une suite
`ICI un morceau de "Code" 
avec un under_score`
Et la fin

MD rendering looks like that :
«
Bonjour ‘test_truc’ comment allez-vous ?

- un texte normal qui en markdown s'est transformé en code

une suite

Un morceau de code

avec un under\_score

Et la fin
»

Detail of the 2 other issues

  • A link in a bold line is corrupt in the exported MD because the bold marker ** is included inside the url placeholder : **bold line**[link text](**https://linkurl.ext**)

  • In a list, a bolded line, when exported, features the bold mark OUTSIDE of the list item mark : **- a line** instead of - **la ligne**.

It possibly depends on how these parts of the pad have been created (which format was first introduced), but the visual rendering should be the same in the pad and in the md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions