Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Jun 30, 2020
1 parent 6401d0b commit 9659d13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ marked:
autolink: true
sanitizeUrl: false
headerIds: true
lazyload: false
prependRoot: false
external_link:
enable: false
Expand All @@ -47,6 +48,7 @@ marked:
- **autolink** - Enable autolink for URLs. E.g. `https://hexo.io` will become `<a href="https://hexo.io">https://hexo.io</a>`.
- **sanitizeUrl** - Remove URLs that start with `javascript:`, `vbscript:` and `data:`.
- **headerIds** - Insert header id, e.g. `<h1 id="value">text</h1>`. Useful for inserting anchor link to each paragraph with a heading.
- **lazyload** - Lazy loading images via `loading="lazy"` attribute.
- **prependRoot** - Prepend root value to (internal) image path.
* Example `_config.yml`:
``` yml
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ hexo.config.marked = Object.assign({
autolink: true,
sanitizeUrl: false,
headerIds: true,
lazyload: false,
// TODO: enable prependRoot by default in v3
prependRoot: false,
lazyload: false,
external_link: {
enable: false,
exclude: [],
Expand Down

0 comments on commit 9659d13

Please sign in to comment.