Closed Spitfire1900 closed 9 months ago
Yes, you need to provide your styling. This is not a bug. We simply process the code, attaching the classes needed to style the content. Pygments can dump CSS for you to include in your documents.
If you want, you can enable noclasses
mode via pymdownx.highlight
which will attach inline styling to elements. This is a bit heavy, so I would normally opt to getting Pygments to dump the CSS style and use it in your documents, making any adjustments that you'd like to the styling.
Thanks, that helped me move forward on this.
html = markdown.markdown(
MD,
extensions=[
"pymdownx.highlight",
"pymdownx.superfences",
],
extension_config={
"pymdownx.highlight": {
"noclasses": True
},
},
)
Description
Maybe this is a clone of #2230, but after reading through that I am unable to resolve issues
The following snippet does not produce code with the appropriate styles for syntax highlighting in the source.
The html references classes, but no
<style>
tag or inline style is included in the output.Minimal Reproduction
Run the following code with required extensions installed. (Code is tabbed over to manage
```
escaping issues.)