mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: update wx-renderer
This commit is contained in:
parent
6360325ef0
commit
c2ed645ec6
@ -21,10 +21,6 @@ const WxRenderer = function (opts) {
|
|||||||
for (let ele in themeTpl.inline) {
|
for (let ele in themeTpl.inline) {
|
||||||
if (themeTpl.inline.hasOwnProperty(ele)) {
|
if (themeTpl.inline.hasOwnProperty(ele)) {
|
||||||
let style = themeTpl.inline[ele]
|
let style = themeTpl.inline[ele]
|
||||||
if (ele === 'codespan') {
|
|
||||||
style['font-family'] = CODE_FONT_FAMILY
|
|
||||||
style['white-space'] = 'normal'
|
|
||||||
}
|
|
||||||
mapping[ele] = merge(base, style)
|
mapping[ele] = merge(base, style)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -70,7 +66,6 @@ const WxRenderer = function (opts) {
|
|||||||
return `
|
return `
|
||||||
<style>
|
<style>
|
||||||
.preview-wrapper pre::before {
|
.preview-wrapper pre::before {
|
||||||
font-family: "SourceSansPro", "HelveticaNeue", Arial, sans-serif;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
@ -69,7 +69,6 @@ export default {
|
|||||||
blockquote_p: {
|
blockquote_p: {
|
||||||
'letter-spacing': '0.1em',
|
'letter-spacing': '0.1em',
|
||||||
'color': 'rgb(80, 80, 80)',
|
'color': 'rgb(80, 80, 80)',
|
||||||
'font-family': 'PingFangSC-light, PingFangTC-light, Open Sans, Helvetica Neue, sans-serif',
|
|
||||||
'font-size': '1em',
|
'font-size': '1em',
|
||||||
'display': 'block',
|
'display': 'block',
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user