mkdocs-with-pdf icon indicating copy to clipboard operation
mkdocs-with-pdf copied to clipboard

Math formula and source code

Open Fallqs opened this issue 4 years ago • 2 comments

It's a pity that

it doesn't look so satisfying when converting Math formulas and source codes via current version. I think it would be useful and convenient if you could improve support for them in future updates.

Math Formula

This is what the original mkdocs website looks like:

截屏2021-08-30 上午12 31 18

And this is what the rendered PDF looks like:

Screenshot_2021-08-30-00-28-25-322_cn wps moffice

Source Code

This is what the original website looks like:

截屏2021-08-30 上午12 31 55

And this is the rendered PDF looks like:

Screenshot_2021-08-30-00-28-53-613_cn wps moffice

Fallqs avatar Aug 29 '21 16:08 Fallqs

I fix the pdf problem by

theme:
    name: 'material'

plugins:
  - with-pdf:
      render_js: true  # add this

https://squidfunk.github.io/mkdocs-material/reference/mathjax/#mathjax

whitewum avatar Sep 03 '21 02:09 whitewum

How did you manage to do that? I've tried this: https://github.com/orzih/mkdocs-with-pdf/issues/147 and failed with an empty document.

adamryczkowski avatar Jun 28 '23 15:06 adamryczkowski