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 |
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>
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>