-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: YAML cssclasses are not added to exported document #421
Comments
Hi, can you please include the debug info from the plugin it will help me to see what settings you are using for the export. This feature should work, and still does work in my testing in the beta version. I will test it in the 1.8.01 version and let you know if that works for me. Thanks for the report! |
Here is the debug info.
I get this even in freshly created vault with just the plugin installed. Attaching zip with the vault if it helps. |
I tried to do a bit of digging and I think the issue is with how the page is generated from the document. Obsidian puts these css classes on I do not know much about Obsidian development or why this was done this way, but by updating it to this:
I was able to fix the issue. This of course also adds many classes that are not based on the YAML |
Hi thanks, I can verify that this bug exists in 1.8.01 and that it is fixed in version 1.8.1-2b (which is the beta version). So this fix will come to stable in the next release |
What happened?
Not sure if this is bug or just missing feature but since cssclasses have effect on PDF export I would assume this is bug.
From my testing it seems they are not added to the exported document, causing any styles connected to them to not take effect.
I seen this issue where it seems that it worked before but not currently #307
Reproduction
Add cssclasses property to document such as:
Export document, these css classes are not present on the document.
Last Working Version
Not sure, seems like yes
Version
1.8.01
Operating System
Windows
Obsidian Version
1.5.12
Which browsers can you reproduce this in?
Chrome, Microsoft Edge
Relevant log output
N/A
Additional Info
HTML element in obsidian:
Exported HTML element:
The text was updated successfully, but these errors were encountered: