fix:PDF Export is contacted by LaTeX hightlight #194

This commit is contained in:
Jocs 2018-04-23 21:48:07 +08:00
parent 03ffedd71b
commit 0cd866bcd4
2 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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) {