yhatt / marp

The site of classic Markdown presentation writer app
https://yhatt.github.io/marp/
MIT License
7.89k stars 398 forks source link

header and footer functionality of latest release (marp-cli) #243

Closed tosaba closed 6 years ago

tosaba commented 6 years ago

It seems that with the newest release of marp-cli, the header and footer functionality contains some incompatibilities. Regular text is shown as expected, but as soon as you use bold text or include images, the respective html code is shown, on both, html and PDF slides.

in markdown:

---
header: "**bold** _test_"
footer: "![image](localimage.png)  footer title"
theme: base
---

on the slide:

<strong>bold</strong> <em>test</em>
...

<img src="localimage.png" alt="image" /> footer line

Thanks !

yhatt commented 6 years ago

Maybe it caused by the update of marp-core v0.0.5. (marp-team/marp-core#26) Header and footer are defined as HTML block in the Marpit framework, so these elements might be sanitized unintentionally.

yhatt commented 6 years ago

Ready to use the updated @marp-team/marp-cli v0.0.7. it has included upgrades about the framework (Marpit v0.0.15) and core (marp-core 0.0.6).

tosaba commented 6 years ago

:+1: