torchbox / wagtail-markdown

Markdown support for Wagtail
zlib License
198 stars 66 forks source link

Syntax highlighting not consensus on my local & remote env #111

Closed dusty-cjh closed 1 year ago

dusty-cjh commented 1 year ago

ENV

Local env: macOS python3.9 venv

Remote env: Ubuntu20 python3.10 venv

Related Package Version:

image

I have downloaded and installed pygment-css, and it only works on local ENV. Related CSS file can be accessed correctly.

Appearance

Local Render Effect: image

Remote Render Effect: image

since local and remote rendered different HTML for the same markdown syntax: Local: image

Remote: image

I don't think that is an issue, but I can not find any setting option on Doc, could you help me? thanks a lot

zerolab commented 1 year ago

Can you add install Pygments on you remote dev? if that works, then you need to add Pygments to your requirements file

ref: https://github.com/torchbox/wagtail-markdown#syntax-highlighting mentions it, but should probably be more explicit

The https://python-markdown.github.io/extensions/code_hilite/ Markdown extension uses it for highlighting

dusty-cjh commented 1 year ago

Thanks, have solved it, it is because my CDN config error, the css file wasn’t sync with remote

On Dec 3, 2022, at 18:08, Dan Braghis @.***> wrote:

Can you add install Pygments on you remote dev? if that works, then you need to add Pygments to your requirements file

ref: https://github.com/torchbox/wagtail-markdown#syntax-highlighting mentions it, but should probably be more explicit

The https://python-markdown.github.io/extensions/code_hilite/ Markdown extension uses it for highlighting

— Reply to this email directly, view it on GitHub https://github.com/torchbox/wagtail-markdown/issues/111#issuecomment-1336127590, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK5ZGLHJN7BOYQOCJEHHSNDWLML3XANCNFSM6AAAAAASSQOFHY. You are receiving this because you authored the thread.