-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support the Markdown
*.md
files in the template
- Loading branch information
Showing
82 changed files
with
7,606 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Markdown to HTML | ||
|
||
Use the [HTML Builder Plugin](https://github.com/webdiscus/html-bundler-webpack-plugin) for Webpack to render Markdown files `*.md` to HTML. | ||
|
||
Required to install additional dependencies: | ||
|
||
- markdown-it (render Markdown) | ||
- prismjs (highlighting) | ||
- parse5 (highlighting dependency) | ||
- github-markdown-css (GitHub styles) | ||
- handlebars (optional, if not used default template engine `eta`) | ||
|
||
> **Note** | ||
> | ||
> The template engines supports Markdown: `eta`, `ejs`, `handlebars`, `pug`. | ||
> This example uses the `handlebars` template engine to load the markdown file. | ||
## View and edit in browser | ||
|
||
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/markdown-to-html?file=webpack.config.js) | ||
|
||
## How to use | ||
|
||
```sh | ||
git clone https://github.com/webdiscus/html-bundler-webpack-plugin.git | ||
cd examples/markdown-to-html/ | ||
npm install | ||
npm run view | ||
``` |
Oops, something went wrong.