elliotblackburn / mdpdf

Markdown to PDF command line app with support for stylesheets
https://npmjs.com/package/mdpdf
Apache License 2.0
691 stars 45 forks source link

Math and footnote integration? #178

Open GaloisField2718 opened 4 months ago

GaloisField2718 commented 4 months ago

Hello,

Small question, is it possible to render math as $x^2$ and footnote [^1]?

Otherwise thanks a lot for your very easy to use tool!! 🙏

[^1]: test footnote

elliotblackburn commented 4 months ago

Hi @GaloisField2718, glad to hear you've found the tool useful. We use Showdownjs for the rendering from markdown -> html which is then converted into a PDF. If it's not included in their base package then it's not something mdpdf supports at the moment.

I'd suggest exploring their docs and plugins to find out a bit more. If it's just a simple configuration toggle then I'd be up for a PR to enable it in mdpdf. This isn't a project I spend much time on right now though.

GaloisField2718 commented 4 months ago

Hi @BlueHatbRit, thank you for your answer. I'll take a look to Shodownjs and try to see if there are such features. If I do something and it's functional I'll make a PR. Thanks again for your time and your tool. I let this open for now is it ok?

elliotblackburn commented 4 months ago

Thanks again for your time and your tool

You're welcome! It's worth noting that this project isn't as active as it used to be. I don't use it so much anymore so my time on it has been quite limited. Glad you're getting value out of it though!

I let this open for now is it ok?

Yep, all good!