Closed rgaiacs closed 11 months ago
$ pandoc --from markdown --to markdown -s --shift-heading-level-by -1 <<EOF # Title EOF
produces
--- title: Title ---
This is the behaviour that we are looking. Unfortunatelly,
$ pandoc --from markdown --to markdown -s --shift-heading-level-by -1 <<EOF foo # Title EOF
foo Title
where the title was transformed into a paragraph. The same happens when we have a comment:
$ pandoc --from markdown --to markdown -s --shift-heading-level-by -1 <<EOF <!-- foo --> # Title EOF
```{=html} <!-- foo -->
Title
produces
This is the behaviour that we are looking. Unfortunatelly,
produces
where the title was transformed into a paragraph. The same happens when we have a comment:
produces
Title