How to use the remarkable.utils function in remarkable

To help you get started, we’ve selected a few remarkable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github calpa / gatsby-starter-calpa-blog / src / api / text.js View on Github external
md.renderer.rules.image = (tokens, idx) => {
    const { src, title, alt } = Remarkable.utils.escapeHtml(tokens[idx]);
    return getGalleryImage({ href: src, title, text: alt });
  };

remarkable

Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in one.

MIT
Latest version published 4 years ago

Package Health Score

77 / 100
Full package analysis