Skip to content
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

Github Alert with custom CSS, the content is not reflected in the output Files #5935

Open
273c opened this issue Jan 3, 2024 · 2 comments
Open

Comments

@273c
Copy link

273c commented Jan 3, 2024

The latest version of Typora 1.8 and above had the following behavior

When rewriting the content of a Github Alert with custom CSS, the content is not reflected in the output PDF, HTML, and Pandoc export files.

・The content is displayed on Tyopora.
・It is not displayed in all exported files.
・Custom CSS is put in base.user.css. (This is the same if you put it in base.theme.user.css)

This is very troubling behavior and this is one area where I personally feel there is no point in using github Alert. Once this is resolved, I am sure it will make for a much better writing experience.

@abnerlee
Copy link
Contributor

Could you provide sample CSS styles?

@273c
Copy link
Author

273c commented Jan 21, 2024

.md-alert-text-note .md-alert-text-container:after { content: "注意"; }

The display on Typora is "note", but it is still "note" in PDF export and HTML export.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants