0.0.2 • Published 1 year ago

markdown-webpack-plugin v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Markdown HTML plugin

Webpack plugin for building markdown in HTML static site

Plugin options

OptionTypeDescription
sourcePathstringPath to markdown content
exportPathstringPath to output directory
templatestringPath 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>