https://github.com/snowyu/hexo-next-imarkdown
This Hexo plugin will render the interactive markdown document.
https://github.com/snowyu/hexo-next-imarkdown
hexo-blog hexo-plugin theme-next
Last synced: 3 months ago
JSON representation
This Hexo plugin will render the interactive markdown document.
- Host: GitHub
- URL: https://github.com/snowyu/hexo-next-imarkdown
- Owner: snowyu
- License: mit
- Created: 2019-12-07T02:59:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-09T06:09:30.000Z (over 6 years ago)
- Last Synced: 2025-06-29T13:50:32.484Z (11 months ago)
- Topics: hexo-blog, hexo-plugin, theme-next
- Language: HTML
- Homepage:
- Size: 1.61 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-next-imarkdown
This plugin will render the interactive markdown.


[](https://theme-next.org)
[](https://github.com/jiangtj/hexo-theme-cake)
## Preview & Docs
[](https://riceball.me/article/interative-markdown)
## Quick Start
### Install
```bash
# Create a new hexo project
hexo init
cd
# Add Theme-Next as git submodule
git init
git submodule add https://github.com/theme-next/hexo-theme-next themes/next
# remove the default marked render
yarn remove hexo-renderer-marked
# use the imarkdown render
yarn add hexo-next-imarkdown
# Set theme in main Hexo root config _config.yml file:
cat _config.yml
```
```yaml
# _config.yml
theme: next
```
### Configuration
You can config interactive markdown in `_config.yml` or `source/_data/imarkdown.yml`.
The following is the default configurations:
```yml
imarkdown:
render:
langPrefix: '' # DONT CHANGE
html: true
xhtmlOut: false
breaks: true
linkify: true
typographer: true
quotes: '“”‘’'
anchors:
level: 1
collisionSuffix: ''
tone: false
plugins: full
```
The Interactive Markdown use the [markdown-it](https://github.com/markdown-it/markdown-it)as the renderer.
The full plugins include:
```yml
plugins:
- "markdown-it-interactive" # CAN NOT BE REMOVED
- "markdown-it-highlight-i" # CAN NOT BE REMOVED
- "markdown-it-cjk-breaks"
- "markdown-it-deflist"
- "markdown-it-abbr"
- "markdown-it-container"
- "markdown-it-footnote"
- "markdown-it-ins"
- "markdown-it-sub"
- "markdown-it-sup"
- "markdown-it-math"
- "markdown-it-mark"
```
Now, You can write your interactive markdown document, remember you must enable it in your md file(front-matter):
````md
---
reactive: true
---
# Your Title
````
If you wanna reader can edit the code block on your article:
````md
---
reactive:
editable: true
---
# Your Title
````
More Interactive Markdown introduction see here pls:
* [EN: Interactive Markdown](https://riceball.me/imarkdown/en)
* [CN: 交互式 Markdown](https://riceball.me/imarkdown)
* Simple Sample Markdown document: docs/example.md