Merge branch 'master' of github.com:doocs/md into feature-upload-config

This commit is contained in:
yanglbme 2020-09-13 11:27:28 +08:00
commit b806fba293
3 changed files with 17 additions and 6 deletions

17
.github/workflows/branch-merge.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Merge Branch
on:
push:
branches: [ imgbot ]
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: everlytic/branch-merge@1.1.0
with:
github_token: ${{ github.token }}
source_ref: ${{ github.ref }}
target_branch: 'master'
commit_message_template: '[Automated] Merged {source_ref} into {target_branch}'

View File

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

View File

@ -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',
}, },