GitXplorerGitXplorer
q

markdown-code-highlight-loader

public
10 stars
2 forks
0 issues

Commits

List of commits on branch master.
Verified
a3dee43fcea05d7ffa7c97e43d9512eb759cc272

Merge pull request #1 from whyer11/patch-1

qqiuyuntao committed 7 years ago
Unverified
0939cafd06ab24b67325df574c0c956dfdfe910a

this.cacheable 写重了

wwhyer11 committed 8 years ago
Unverified
b129c7204f5992bdafd2067298469232d662542d

delete log

qqiuyuntao committed 9 years ago
Unverified
a1233378512364d10c01c04862fe8d7540c4d7c6

update readme.md

qqiuyuntao committed 9 years ago
Unverified
1b7e4d5dc201aeb88b3f5e0273a090e784e89a62

update readme.md

qqiuyuntao committed 9 years ago
Unverified
77b95a3d96e671ae02bcd82379a6d716820a837e

update readme.md

qqiuyuntao committed 9 years ago

README

The README file for this repository.

markdown-code-highlight-loader

This is a webpack loader, use marked to translate *.md to html, so that you can use in webpage.

And use highlight.js to highlight your code when you write in your *.md

  • npm install markdown-code-highlight-loader --save in your project

  • in your webpack.config.js, write like This

    module: {
      loaders: [{
        test: /\.md$/,
        loader: "html!markdown-code-highlight"
      }]
    }
    
  • or in your js, import like this

  var html = require('html!markdown-code-highlight!./readme.md')
  • import css in your webpage
require('./index.css');

highlight style

If you don't like the style in index.css, you can also use other highlight style.