marked-plus-renderer
marked with a few more features
Last updated 6 years ago by leungwensen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install marked-plus-renderer 
SYNC missed versions from official npm registry.

marked-plus-renderer

homepage

wrap marked-plus as a full-feature markdown renderer

install

npm install marked-plus-renderer --save

usage

sample

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo</title>
    <link rel="stylesheet" href="$path/to/marked-plus-renderer/dist/libs.css">
</head>
<body>
    <div id="container" class="markdown-body"></div>
    <script src="$path/to/marked-plus-renderer/dist/libs.js"></script>
    <script src="$path/to/marked-plus-renderer/dist/renderer.js"></script>
    <script>
        fetch('$path/to/marked-plus-renderer/doc/features.md').then(function(markdownString){
            mpr.render(document.getElementById('container'), markdownString);
        });
    </script>
</body>
</html>

use with npm

npm install marked-plus-renderer --save-dev
<!--...-->
    <link rel="stylesheet" href="$path/to/marked-plus-renderer/dist/libs.css">
<!--...-->
    <script src="$path/to/marked-plus-renderer/dist/libs.js"></script>
    <script src="$path/to/main.js"></script>
<!--...-->

in main.js

import mpr from 'marked-plus-renderer'; 

// your codes

mpr.render(container, markdownString);

demo

features

  • [x] all basic markdown features(headings, tables, etc.)
  • [x] gfm-like check-list
  • [x] code highlighting
  • [x] definition list
  • [x] footnote
  • [x] graph
  • [x] sequence diagram
  • [x] gantt diagram
  • [x] flowchart
  • [x] latex math typesetting
  • [x] emoji
  • [x] html/js/css injection

Current Tags

  • 0.0.20160224                                ...           latest (6 years ago)

5 Versions

  • 0.0.20160224                                ...           6 years ago
  • 0.0.20160223                                ...           6 years ago
  • 0.0.20160222                                ...           6 years ago
  • 0.0.20160220                                ...           6 years ago
  • 0.0.20160216                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 5
Last Month 0
Dependencies (12)
Dev Dependencies (20)
Dependents (1)

Copyright 2014 - 2021 © npmmirror.com |