
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
hexo-renderer-markdown-it
Advanced tools
Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
Add support for Markdown and CommonMark. This plugin uses Markdown-it as a render engine on Hexo.
This renderer has only been tested with Hexo version 3.0.0, which is currently a Release Candidate.
User eephyne has reported that hexo-renderer-markdown-it
is not compatible with Hexo 2.8.3.
In it's current version, Hexo with hexo-renderer-marked
predefined as a markdown renderer.
To use hexo-renderer-markdown-it
you will have to:
Step 1 - Remove hexo-renderer-marked
$ npm un hexo-renderer-marked --save
Step 2 - Install hexo-renderer-markdown-it
$ npm i hexo-renderer-markdown-it --save
Step 3 - Configure the plugin (or leave empty for reasonable defaults).
While the options to enable, or disable Markdown-it plugins is not yet implemented, most if not all of the options available on the vanila parser have been exposed.
Please only choose one of the following options.
You can choose the CommonMark Strict Mode, which tells the render to follow the latest CommonMark spec.
# Markdown-it config
## Docs: https://www.npmjs.com/package/hexo-renderer-markdown-it
markdown: 'commonmark'
Or you can use Zero Mode. This disables most of the parser functionality. You should only use this mode if you want nothing more than italics or bold.
# Markdown-it config
## Docs: https://www.npmjs.com/package/hexo-renderer-markdown-it
markdown: 'zero'
If you don't pass any configurations to the parser, it defaults to something very close to Github Flavored Markdown.
You have the option to pass a very specific configuration to the parser.
# Markdown-it config
## Docs: https://www.npmjs.com/package/hexo-renderer-markdown-it
markdown:
html: true
xhtmlOut: false
breaks: false
linkify: true
typographer: true
quotes: '“”‘’'
true || false
If true, the renderer will allow HTML tags inside markdown documents be passed to the resulting document.true || false
If true, the renderer will export XHTML compatible tags (<br />
instead of <br>
). This feature exists only there to ensure CommonMark compliance.true || false
Line breaks in the source file will be parsed into <br>
tags.true || false
Parser returns proper links from links inline with the text.true || false
Enables substitution for common typography elements like © and curly quotes.true
.As of now, there are three plugins available.
These can be enabled in the global _config.yml
like so:
markdown:
plugins:
- markdown-it-footnote
- markdown-it-sub
- markdown-it-sup
If you have any requests please file an issue.
FAQs
Markdown-it is a Markdown parser, done right. A faster and CommonMark compliant alternative for Hexo.
The npm package hexo-renderer-markdown-it receives a total of 809 weekly downloads. As such, hexo-renderer-markdown-it popularity was classified as not popular.
We found that hexo-renderer-markdown-it demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.