Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.
/ liandi Public archive

Commit

Permalink
♻️ fix #86
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jul 30, 2020
1 parent 393d9b1 commit 81d9e0b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 17 deletions.
12 changes: 6 additions & 6 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@
"webpack-cli": "^3.3.10"
},
"dependencies": {
"vditor": "^3.3.10"
"vditor": "^3.4.0"
}
}
5 changes: 0 additions & 5 deletions app/src/config/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ export const markdown = {
<div class="form__item"><label>
<input id="footnotes" type="checkbox"${liandi.config.markdown.footnotes ? ' checked' : ''}/>
<span class="fn__space"></span>${i18n[liandi.config.lang].footnotes}
</label></div>
<div class="form__item"><label>
<input id="setext" type="checkbox"${liandi.config.markdown.setext ? ' checked' : ''}/>
<span class="fn__space"></span>${i18n[liandi.config.lang].setext}
</label></div>`;
},
bindEvent: (liandi: ILiandi, element: HTMLElement) => {
Expand All @@ -87,7 +83,6 @@ export const markdown = {
footnotes: (element.querySelector('#footnotes') as HTMLInputElement).checked,
toc: (element.querySelector('#toc') as HTMLInputElement).checked,
hideToolbar: (element.querySelector('#hideToolbar') as HTMLInputElement).checked,
setext: (element.querySelector('#setext') as HTMLInputElement).checked,
outline: (element.querySelector('#outline') as HTMLInputElement).checked,
});
});
Expand Down
2 changes: 1 addition & 1 deletion app/src/config/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const initConfigSearch = (liandi: ILiandi, element: HTMLElement) => {
const configIndex = [
['markdown', 'katex', 'mathjax'].concat(getLang(['config', 'editMode', 'wysiwyg', 'ir', 'sv', 'outline',
'autoSpace', 'fixTermTypo', 'chinesePunctuation', 'inlineMathDigit', 'mathEngine', 'hideToolbar', 'toc',
'footnotes', 'setext', 'paragraphBeginningSpace'
'footnotes', 'paragraphBeginningSpace'
])),
getLang(['autoFetch', 'image']),
getLang(['theme', 'themeLight', 'themeDark']),
Expand Down
1 change: 0 additions & 1 deletion app/src/editors/webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ export class EditorWebview {
fixTermTypo: liandi.config.markdown.fixTermTypo,
toc: liandi.config.markdown.toc,
footnotes: liandi.config.markdown.footnotes,
setext: liandi.config.markdown.setext,
paragraphBeginningSpace: liandi.config.markdown.paragraphBeginningSpace
},
math: {
Expand Down
2 changes: 0 additions & 2 deletions app/src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const i18n: II18n = {
footnotes: 'Enable [^footnotes]',
autoFetch: 'Auto fetch remote image to local',
image: 'Image',
setext: 'Parse Setext Heading',
},
zh_CN: {
paragraphBeginningSpace: '段落开头空两格',
Expand Down Expand Up @@ -103,6 +102,5 @@ export const i18n: II18n = {
footnotes: '支持脚注 [^footnotes]',
autoFetch: '自动拉取远程图片到本地',
image: '图片',
setext: '解析 Setext 风格的标题',
},
};
1 change: 0 additions & 1 deletion app/src/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ declare interface IMD {
hideToolbar: boolean;
toc: boolean;
footnotes: boolean;
setext: boolean;
outline: boolean;
paragraphBeginningSpace: boolean;
}
Expand Down

0 comments on commit 81d9e0b

Please sign in to comment.