
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.
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:
hexo-renderer-marked
$ npm uninstall hexo-renderer-marked --save
hexo-renderer-markdown-it
$ npm install hexo-renderer-markdown-it --save
Markdown-it is one of the most flexible markdown renderers in node. That means it comes with lots of configuration options and even plugins to extend it self.
To be able to expose all this functionality inside Hexo would be an enormous task. That said, feel free to open an issue if there's something you need.
You can configure this plugin by copy and pasting the following code into your main config.yml
.
# Markdown-it config
## Docs: https://github.com/celsomiranda/hexo-renderer-markdown-it/blob/master/README.md
MarkdownIt:
# Enable HTML tags in source. Also needed so hexo can process code tags and
# shortcodes.
html: true,
# Use '/' to close single tags (<br />). This is only for full CommonMark
# compatibility.
xhtmlOut: false,
# Convert '\n' (newline) in paragraphs into <br>
breaks: false,
# CSS language prefix for fenced blocks. Useful for external highlighters.
langPrefix: '',
# Autoconvert URL-like text to links
linkify: true,
# Enable some language-neutral replacement & quotes beautification
typographer: true,
# Double + single quotes replacement pairs, when typographer enabled,
# and smartquotes on. Set doubles to '«»' for Russian, '„“' for German.
quotes: '“”‘’',
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.