From a7088384b00531ef6fa573cdd9d361e7354b6d11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Sat, 10 Apr 2021 17:37:44 +0800 Subject: [PATCH] =?UTF-8?q?build:=E6=9B=B4=E6=94=B9=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E5=BC=95=E6=93=8E=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _config.yml | 104 +++++++++++++++++++++++++++++++-------------------- package.json | 8 +++- 2 files changed, 69 insertions(+), 43 deletions(-) diff --git a/_config.yml b/_config.yml index f5bfe9f..cbbbc2b 100644 --- a/_config.yml +++ b/_config.yml @@ -40,7 +40,7 @@ external_link: exclude: '' filename_case: 0 render_drafts: false -post_asset_folder: false +post_asset_folder: true relative_link: false future: true highlight: @@ -105,47 +105,69 @@ deploy: type: '' # Plugins Configurations -markdown_it_plus: - highlight: true - html: true - xhtmlOut: true +marked: + gfm: true + pedantic: false breaks: true - langPrefix: - linkify: true - typographer: - quotes: “”‘’ - pre_class: highlight - plugins: - - plugin: - name: markdown-it-mark - enable: true - - plugin: - name: markdown-it-toc-and-anchor - enable: true - options: - toc: true - tocClassName: 'markdown-toc' - tocFirstLevel: 2 - tocLastLevel: 6 - tocCallback: - anchorLink: true - anchorLinkSymbol: '#' - anchorFirstLevel: 2 - anchorLastLevel: 6 - anchorLinkSpace: false - anchorLinkSymbolClassName: - anchorLinkBefore: true - anchorClassName: 'markdown-anchor' - resetIds: true -# toc: -# maxdepth: 3 -# class: toc -# slugify: transliteration -# decodeEntities: false -# anchor: -# position: after -# symbol: '#' -# style: header-anchor + smartLists: true + smartypants: true + quotes: '“”‘’' + modifyAnchors: 0 + anchorAlias: false + autolink: true + mangle: true + sanitizeUrl: false + headerIds: true + lazyload: false + prependRoot: false + postAsset: false + external_link: + enable: false + exclude: [] + nofollow: false + disableNunjucks: false + descriptionLists: true +# markdown_it_plus: +# highlight: true +# html: true +# xhtmlOut: true +# breaks: true +# langPrefix: +# linkify: true +# typographer: +# quotes: “”‘’ +# pre_class: highlight +# plugins: +# - plugin: +# name: markdown-it-mark +# enable: true +# - plugin: +# name: markdown-it-toc-and-anchor +# enable: true +# options: +# toc: true +# tocClassName: 'markdown-toc' +# tocFirstLevel: 2 +# tocLastLevel: 6 +# tocCallback: +# anchorLink: true +# anchorLinkSymbol: '#' +# anchorFirstLevel: 2 +# anchorLastLevel: 6 +# anchorLinkSpace: false +# anchorLinkSymbolClassName: +# anchorLinkBefore: true +# anchorClassName: 'markdown-anchor' +# resetIds: true +toc: + maxdepth: 3 + class: toc + slugify: transliteration + decodeEntities: false + anchor: + position: after + symbol: '#' + style: header-anchor math: katex: css: 'https://cdn.jsdelivr.net/npm/katex@0.12.0/dist/katex.min.css' diff --git a/package.json b/package.json index a852c02..beb6adc 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,11 @@ "dependencies": { "hexo": "^5.0.0", "hexo-admonition": "^1.1.2", + "hexo-filter-fenced-code": "^1.0.2", "hexo-filter-plantuml": "^2.1.0", + "hexo-filter-sub": "^1.0.0", + "hexo-filter-sup": "^1.0.1", + "hexo-footnotes": "^1.0.2", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-index": "^2.0.0", @@ -22,9 +26,9 @@ "hexo-math": "^4.0.0", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-less": "^2.0.2", - "hexo-renderer-markdown-it-plus": "^1.0.4", - "hexo-renderer-stylus": "^2.0.0", + "hexo-renderer-marked": "^4.0.0", "hexo-server": "^2.0.0", + "hexo-tag-katex": "^1.1.1", "hexo-theme-landscape": "^0.0.3", "uikit": "^3.6.18" }