<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          markdown-loadermarkdown loader for webpack

          聯(lián)合創(chuàng)作 · 2023-09-23 02:13

          markdown-loader

          markdown-loader for webpack using marked.

          install size Build Status

          Installation

          npm install markdown-loader

          Changelog

          Usage

          Since marked's output is HTML, it's best served in conjunction with the html-loader.

          Webpack 2+

          {
              module: {
                  rules: [{
                          test: /\.md$/,
                          use: [
                              {
                                  loader: "html-loader"
                              },
                              {
                                  loader: "markdown-loader",
                                  options: {
                                      /* your options here */
                                  }
                              }
                          ]
                      }]
              }
          }

          Options

          Pass your marked options as shown above. In order to specify custom renderers, set the options.renderer-option in your webpack config.

          // webpack.config.js
          
          const marked = require("marked");
          const renderer = new marked.Renderer();
          
          return {
              module: {
                  rules: [{
                          test: /\.md$/,
                          use: [
                              {
                                  loader: "html-loader"
                              },
                              {
                                  loader: "markdown-loader",
                                  options: {
                                      pedantic: true,
                                      renderer
                                  }
                              }
                          ]
                      }]
              }
          }

          License

          MIT (http://www.opensource.org/licenses/mit-license.php)

          Sponsors

          瀏覽 15
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          評論
          圖片
          表情
          推薦
          點贊
          評論
          收藏
          分享

          手機掃一掃分享

          編輯 分享
          舉報
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  天堂v视频 | 69精品| 欧美精品三级片在线 | 国产精品美女久久久 | av在线天堂网 |