md显示ke内容时,行间距过高的问题

dev_unstable
hjm 5 years ago
parent 3dc3a3c0af
commit 35bc6e9679

@ -55,6 +55,10 @@ html, body {
.markdown-body p {
white-space: pre-wrap;
}
/* https://www.educoder.net/courses/2346/group_homeworks/34405/question */
.renderAsHtml.markdown-body p {
white-space: inherit;
}
/* resize */
.editormd .CodeMirror {
border-right: none !important;

@ -9,6 +9,7 @@ export function markdownToHTML(oldContent, selector) {
window.$('#md_div').html('')
// markdown to html
if (selector && oldContent && oldContent.startsWith('<p')) { // 普通html处理
window.$('#' + selector).addClass('renderAsHtml')
window.$('#' + selector).html(oldContent)
} else {
try {

Loading…
Cancel
Save