markdown-webpack-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

Markdown HTML plugin

Webpack plugin for building markdown in HTML static site

Plugin options

Option Type Description
sourcePath string Path to markdown content
exportPath string Path to output directory
template string Path to html template

Template

Example of HTML template. {{markdownContent}} will be replaced to generated HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
</head>
<body>
  <div id="app">{{markdownContent}}</div>
</body>
</html>

Example

Plugin usage

Link resolver:

Plugin can recognize links on another markdown files:

[Linked page](./linked-page.md)

Will be compiled to:

<a href="./linked-page.html">Linked page</a>

Readme

Keywords

none

Package Sidebar

Install

npm i markdown-webpack-plugin

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

14 kB

Total Files

6

Last publish

Collaborators

  • siarhei-hrynevich