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 Style Alert cannot show in HTML or PDF #6014

Closed
3 tasks done
HoeYeungHo opened this issue Apr 2, 2024 · 3 comments
Closed
3 tasks done

Github Style Alert cannot show in HTML or PDF #6014

HoeYeungHo opened this issue Apr 2, 2024 · 3 comments

Comments

@HoeYeungHo
Copy link

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • Searched http://support.typora.io/


Describe the bug
I know Github Style Alert did not adapt to i18n, so I followed the documentation to modify the CSS file, and all of this worked in typora, which is great! But when I export the markup to an HTML or PDF file, it has an effect on the style of Github Style Alert, but it does not have an effect on its text content.

  • Effectively modifying styles

    .md-alert.md-alert-tip {
        border-left: 4px solid rgb(31, 136, 61);
        padding: 10px 15px;
        color: var(--text-color);
        background-color: rgba(31, 136, 61, .02);
        border-radius:0px 5px 5px 0px ;
    }
  • The modification of text content only works in typora and is ineffective in exported HTML and PDF files

    .md-alert-text-tip .md-alert-text-container:after {
        content: "面试真题";
    }

Screenshots / Screencasts
1712064125090

Desktop (please complete the following information):

Windows 11 64bit

Typora Version

Typora 1.8.10

@HoeYeungHo
Copy link
Author

HoeYeungHo commented Apr 22, 2024

In my spare time, I tried exporting to other formats (including images, docx, epub, and LaTeX) and found that this issue still exists. All text information modified in CSS cannot be displayed properly. In addition, I also tried the printing option, but it still couldn't be displayed properly.

Typora Version: Typora 1.8.10

@abnerlee
Copy link
Contributor

abnerlee commented May 6, 2024

We may support this in PDF / HTML, but since this approach is not a Github Markdown spec, we may not extend this to other export fomats.

@HoeYeungHo
Copy link
Author

This has been achieved in the Typora 1.9!

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