zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
226 stars 53 forks source link

[zmarkdown] Fix introduction/conclusion shifts #428

Closed StaloneLab closed 3 years ago

StaloneLab commented 3 years ago

Send request to endpoint /latex-document

{
    "md": {
        "introduction": "myIntro",
        "title":        "myTitle",
        "children":     [{"introduction": "shiftedIntro"}]
    },
    "opts": {
        "content_type": "article",
        "title": "Heloo!",
        "authors": ["TALONE"],
        "license": "cc-by",
        "license_directory": "/home/zaphod",
        "smileys_directory": "/home/smileys",
        "heading_shift": 2
    }
}

You get levelThreeTitle (as expected because of the heading shift), but also LevelThreeIntroduction, which isn't expected. This PR solves the problem and restore the expected behavior.