Closed pawamoy closed 2 years ago
Yup, what that argument does is push all the per-text styling to inline. I will add some ptg tag to the text elements.
Actually, does it effect other parts of the website? I was under the impression that styles defined within an SVG file are scoped to it, but I might be completely misunderstanding the system.
Yes it does affect other parts of the page, at least another SVG aobve it in the page :slightly_smiling_face:
Without PyTermGUI's SVG style:
With:
Should be good now! By default SVG text
items will use the class ptg
, but that can be change with the prefix
argument to the exporter.
Thanks a lot! Should I wait for a release or do you want me to try master branch?
The release should be out in a couple of hours, but I'm not expecting any major changes. A quick test would be much appreciated!
Describe the bug I'm adding an example using PyTermGUI to my Markdown Exec's gallery. Here's my code:
Whatever the value of
inline_styles
, I get astyle
tag in the final HTML. This is problematic because it affects other parts of the page.Expected behavior No global style set in the page.
System information
Possible cause I might misunderstand the purpose of the mentioned style tag or the
inline_styles
option.Possible solution Use more specific CSS selectors to affect only PyTermGUI's own SVG.