The following online PNG image in your markdown source will be embedded in the generated html
The following local PNG image in your markdown source will be embedded in the generated html
The following local SVG icon in your markdown source will be embedded in the generated html
Surround your LaTeX with a single $ on each side for inline rendering.
Use two $ for block rendering. This mode uses bigger symbols and centres the result.
This is an inline LaTeX-like formula describing textbook RSA encryption.
And this is a block formula:
The following code will be highlighted with highlight.js. Default style is 'vs2015' but you can choose any highlight.js style passing the name to the command with --highlightjs-style <stylename>.
'use strict'
const mdChords = require('markdown-it')({ breaks: true }).use(require('markdown-it-chords'))
module.exports = function chords (md) {
const defaultRender = md.renderer.rules.fence
md.renderer.rules.fence = function (tokens, idx, options, env, self) {
const token = tokens[idx]
if (token.tag === 'code' && token.info === 'song') {
return `<div class="song">${mdChords.render(token.content)}</song>`
}
// pass token to default renderer.
return defaultRender(tokens, idx, options, env, self)
}
}
You can also render songs (lyrics with chords) using chordsong or markdown-it-chords.
Rendering a song involves writting it a a fenced code block with language set to :
song or chordsong for chordsongchords for markdown-it-chordsCDo, a deer, a female deer
DmRay, a drop of golden sun
E♭May, a possiD♯bility
D/F♯Fee, the price you pay to run