5.1.0
版本发布时间: 2020-08-22 11:24:56
hexojs/hexo最新发布版本:v7.3.0(2024-07-01 22:41:17)
Features
-
feat(highlight): parse 'caption' option to prismHighlight @curbengh [#4476]
-
caption
is now available in prismjs:
# _config.yml highlight: enable: false prismjs: enable: true
- It can be used in triple backtick codeblock:
``` js caption console.log('foo') ```
- above codeblock will be rendered as: (class attributes are omitted for brevity)
<pre><div class="caption"><span>caption</span></div><code>console...</code></pre>
- you can style the caption by:
pre div.caption { font-size: 0.9em; color: #888; } pre div.caption a { float: right; }
- also available via
codeblock
andinclude_code
tag plugins.
-
-
fix: refactor post escape @SukkaW [#4472]
- fixed issue with prismjs that, in some cases, did not remove hexo's processing tag properly
-
Remove plugins option in config @stevenjoezhang [#4475]
# _config.yml plugins:
-
plugins
option has been deprecated long ago and it's now completely dropped - plugins should be saved in
scripts/
folder or installed via npmpackage.json
.
-
Performance
- perf(backtick_code): avoid duplicated escaping @SukkaW [#4478]