MartenBE / mkslides

Use mkslides to easily turn markdown files into beautiful slides using the power of Reveal.js!
https://martenbe.github.io/mkslides/
MIT License
8 stars 1 forks source link

Does mdslides support YAML Front Matter configurations ? #11

Open jaywhj opened 6 days ago

jaywhj commented 6 days ago

Excuse me, does mdslides support YAML Front Matter configurations ? I tried it and it didn't seem to work! I know that mkslides.yml file can configure all the properties, but sometimes there are special cases, if I want to configure individual MD file properties, what do I do?

By the way, the last feedback about the math equation parsing and emoji parsing bugs, I fed back to the upstream reveal.js, and the math equation parsing bug was fixed the next day, and you can see the code update of the plugin from reveal.js commit

about the emoji parsing, because reveal.js does not cover it, so upstream reveal doesn't have this problem.

I see that reveal.js didn't change the code or modify the regular expression much, just added the filter tag for code, it turns out there were other tags that needed to be filtered, just adding the code tag solved it, hope that helps.

MartenBE commented 6 days ago

Although the frontmatter is parsed, it currently only overrides the title I think. I want to rewrite the whole config management to be more robust using OmegaConf but that won't be for soon unfortunately as my spare time is sparse the coming weeks.

about the emoji parsing, because reveal.js does not cover it, so upstream reveal doesn't have this problem.

That is correct, see the remarks at https://github.com/MartenBE/mkslides/issues/9#issuecomment-2460528875 . This is still a wont fix for the moment as I don't know when someone want or don't want emoji's to be parsed in code and as I also don't escape HTML entities.

By the way, the last feedback about the math equation parsing and emoji parsing bugs, I fed back to the upstream reveal.js, and the math equation parsing bug was fixed the next day, and you can see the code update of the plugin from reveal.js commit

Great!

jaywhj commented 6 days ago

Yes,it currently only overrides the title.

Looking forward to your updates, but there's no rush, when you're free later, cheers