https://github.com/menci/hexo-renderer-syzoj-renderer
Render Hexo's markdown documents with syzoj-renderer
https://github.com/menci/hexo-renderer-syzoj-renderer
Last synced: about 1 year ago
JSON representation
Render Hexo's markdown documents with syzoj-renderer
- Host: GitHub
- URL: https://github.com/menci/hexo-renderer-syzoj-renderer
- Owner: Menci
- License: agpl-3.0
- Created: 2019-03-23T14:20:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T05:53:08.000Z (over 4 years ago)
- Last Synced: 2025-04-12T10:48:11.220Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-renderer-syzoj-renderer
Render Hexo's markdown documents with syzoj-renderer.
# Install
First, make sure that you've removed all other markdown renderers from Hexo. For example:
```bash
yarn remove hexo-renderer-marked
```
Then install this plugin:
```bash
yarn add hexo-renderer-syzoj-renderer
```
# Configure
Configurations are passed by Hexo's `_config.yml`. Available options (and their default values) are:
```yaml
syzoj_renderer:
cache_file: cache.json # File to store cache, related to Hexo's base directory.
highlighter: prism # Code highlighter, 'prism' or 'hexo', the later uses highlight.js.
options: # syzoj-renderer's options, see https://github.com/syzoj/syzoj-renderer.
highlight:
expandTab: null # expandTab > 0 to enable expand tab, which replaces one tab to that namy spaces.
wrapper: # Strings that'll be added to highlighted code's beginning and ending.
-
-
markdownItMergeCells: true # Enable markdown-it-merge-cells or not, which'll merge adjacent cells with same
# content in Markdown tables.
markdownIt: # markdown-it's options, see https://github.com/markdown-it/markdown-it.
html: true
breaks: false
linkify: true
typographer: false
markdownItMath: # markdown-it-math-loose's options, see https://github.com/Menci/markdown-it-math-loose.
inlineOpen: $
inlineClose: $
blockOpen: $$
blockClose: $$
```