mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 05:09:56 +08:00
fix:PDF Export is contacted by LaTeX hightlight #194
This commit is contained in:
parent
03ffedd71b
commit
0cd866bcd4
4
.github/CHANGELOG.md
vendored
4
.github/CHANGELOG.md
vendored
@ -1,4 +1,4 @@
|
||||
### 0.11.14
|
||||
### 0.11.16
|
||||
|
||||
**:cactus:Feature**
|
||||
|
||||
@ -22,6 +22,8 @@
|
||||
- fix #198 navigation in table
|
||||
- fix: #190 Delete user settings on uninstall (NSIS) (#203) - Felix Häusler
|
||||
- fix: html block style error when active - Jocs
|
||||
- fix: PDF Export is contacted by LaTeX hightlight #194
|
||||
- fix: Table inside a list is not supported #202
|
||||
|
||||
### 0.10.21
|
||||
|
||||
|
@ -35,6 +35,13 @@ class ExportHTML {
|
||||
.dark hr {
|
||||
background-color: #545454;
|
||||
}
|
||||
.ag-hide.ag-math > .ag-math-render {
|
||||
top: 0;
|
||||
position: relative;
|
||||
padding: 0;
|
||||
color: #000;
|
||||
background: transparent;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="editor-wrapper fillscreen ${themeName}">
|
||||
@ -186,6 +193,15 @@ class ExportHTML {
|
||||
anchor.attr('target', '_blank')
|
||||
})
|
||||
}
|
||||
// hide math preview bubble
|
||||
const mathes = $(`span.${CLASS_OR_ID['AG_MATH']}`)
|
||||
mathes.each((i, m) => {
|
||||
const math = $(m)
|
||||
if (math.hasClass(CLASS_OR_ID['AG_GRAY'])) {
|
||||
math.removeClass(CLASS_OR_ID['AG_GRAY'])
|
||||
math.addClass(CLASS_OR_ID['AG_HIDE'])
|
||||
}
|
||||
})
|
||||
// soft line break render to html is a space, and hard line break render to html is `<br>`
|
||||
const paragraphs = $(`p.${CLASS_OR_ID['AG_PARAGRAPH']}`)
|
||||
if (paragraphs.length) {
|
||||
|
Loading…
Reference in New Issue
Block a user