diff --git a/CHANGELOG.md b/CHANGELOG.md
index 825f884..db10385 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,9 @@
# Change Log
+## 1.2.0 (2018/05/03)
+* Add: Support [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
+ * Support for lightweight diagrams (PlantUML) [#60](https://github.com/yzane/vscode-markdown-pdf/issues/60)
+
## 1.1.0 (2018/05/03)
* Add: Support [markdown-it-container](https://github.com/markdown-it/markdown-it-container) [#72](https://github.com/yzane/vscode-markdown-pdf/issues/72)
diff --git a/README.ja.md b/README.ja.md
index 6d5605d..55070cc 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -31,6 +31,8 @@
* [emoji](http://www.webpagefx.com/tools/emoji-cheat-sheet/)
* [markdown-it-checkbox](https://github.com/mcecot/markdown-it-checkbox)
* [markdown-it-container](https://github.com/markdown-it/markdown-it-container)
+* [PlantUML](http://plantuml.com/)
+ * [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
サンプルファイル
* [pdf](sample/README.pdf)
@@ -40,20 +42,34 @@
### markdown-it-container
-input
+INPUT
```
::: warning
*here be dragons*
:::
```
-output
+OUTPUT
``` html
```
+### markdown-it-plantuml
+
+INPUT
+```
+@startuml
+Bob -[#red]> Alice : hello
+Alice -[#0000FF]->Bob : ok
+@enduml
+```
+
+OUTPUT
+
+![PlantUML](images/PlantUML.png)
+
## インストール
@@ -508,6 +524,10 @@ Visual Studio Code の `files.autoGuessEncoding` オプションを使うと、
## [Release Notes](CHANGELOG.md)
+### 1.2.0 (2018/05/03)
+* Add: Support [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
+ * Support for lightweight diagrams (PlantUML) [#60](https://github.com/yzane/vscode-markdown-pdf/issues/60)
+
### 1.1.0 (2018/05/03)
* Add: Support [markdown-it-container](https://github.com/markdown-it/markdown-it-container) [#72](https://github.com/yzane/vscode-markdown-pdf/issues/72)
@@ -532,17 +552,18 @@ MIT
## Special thanks
-* [marcbachmann/node-html-pdf](https://github.com/marcbachmann/node-html-pdf)
+* [GoogleChrome/puppeteer](https://github.com/GoogleChrome/puppeteer)
* [markdown-it/markdown-it](https://github.com/markdown-it/markdown-it)
* [mcecot/markdown-it-checkbox](https://github.com/mcecot/markdown-it-checkbox)
+* [leff/markdown-it-named-headers](https://github.com/leff/markdown-it-named-headers)
* [markdown-it/markdown-it-emoji](https://github.com/markdown-it/markdown-it-emoji)
* [HenrikJoreteg/emoji-images](https://github.com/HenrikJoreteg/emoji-images)
* [isagalaev/highlight.js](https://github.com/isagalaev/highlight.js)
* [cheeriojs/cheerio](https://github.com/cheeriojs/cheerio)
* [janl/mustache.js](https://github.com/janl/mustache.js)
-
+* [markdown-it/markdown-it-container](https://github.com/markdown-it/markdown-it-container)
+* [gmunguia/markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
and
-
* [cakebake/markdown-themeable-pdf](https://github.com/cakebake/markdown-themeable-pdf)
diff --git a/README.md b/README.md
index 20552f7..6f3bde2 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,8 @@ Supports the following features
* [emoji](http://www.webpagefx.com/tools/emoji-cheat-sheet/)
* [markdown-it-checkbox](https://github.com/mcecot/markdown-it-checkbox)
* [markdown-it-container](https://github.com/markdown-it/markdown-it-container)
+* [PlantUML](http://plantuml.com/)
+ * [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
Sample files
* [pdf](sample/README.pdf)
@@ -42,20 +44,34 @@ Sample files
### markdown-it-container
-input
+INPUT
```
::: warning
*here be dragons*
:::
```
-output
+OUTPUT
``` html
```
+### markdown-it-plantuml
+
+INPUT
+```
+@startuml
+Bob -[#red]> Alice : hello
+Alice -[#0000FF]->Bob : ok
+@enduml
+```
+
+OUTPUT
+
+![PlantUML](images/PlantUML.png)
+
## Install
@@ -514,6 +530,10 @@ Please use the following to insert a page break.
## [Release Notes](CHANGELOG.md)
+### 1.2.0 (2018/05/03)
+* Add: Support [markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
+ * Support for lightweight diagrams (PlantUML) [#60](https://github.com/yzane/vscode-markdown-pdf/issues/60)
+
### 1.1.0 (2018/05/03)
* Add: Support [markdown-it-container](https://github.com/markdown-it/markdown-it-container) [#72](https://github.com/yzane/vscode-markdown-pdf/issues/72)
@@ -547,10 +567,10 @@ MIT
* [isagalaev/highlight.js](https://github.com/isagalaev/highlight.js)
* [cheeriojs/cheerio](https://github.com/cheeriojs/cheerio)
* [janl/mustache.js](https://github.com/janl/mustache.js)
-
+* [markdown-it/markdown-it-container](https://github.com/markdown-it/markdown-it-container)
+* [gmunguia/markdown-it-plantuml](https://github.com/gmunguia/markdown-it-plantuml)
and
-
* [marcbachmann/node-html-pdf](https://github.com/marcbachmann/node-html-pdf)
* [cakebake/markdown-themeable-pdf](https://github.com/cakebake/markdown-themeable-pdf)
diff --git a/extension.js b/extension.js
index 372b48d..6ff9747 100644
--- a/extension.js
+++ b/extension.js
@@ -257,7 +257,11 @@ function convertMarkdownToHtml(filename, type, text) {
}
}
});
-
+
+ // PlantUML
+ // https://github.com/gmunguia/markdown-it-plantuml
+ md.use(require('markdown-it-plantuml'));
+
statusbarmessage.dispose();
return md.render(text);
diff --git a/images/PlantUML.png b/images/PlantUML.png
new file mode 100644
index 0000000..3dabf8f
Binary files /dev/null and b/images/PlantUML.png differ
diff --git a/package-lock.json b/package-lock.json
index 1745bb4..7d51acc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "markdown-pdf",
- "version": "1.1.0",
+ "version": "1.2.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -1854,6 +1854,11 @@
"string": "3.3.3"
}
},
+ "markdown-it-plantuml": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/markdown-it-plantuml/-/markdown-it-plantuml-1.0.0.tgz",
+ "integrity": "sha512-SA003T4/PVeNmxUV8mTE5If1hO7+1HPAPZlQGxETi12CU1xlmE0SgpBjVTM2oPDnoeKyCUuH7U1ra5QKKsFf2A=="
+ },
"mdurl": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz",
diff --git a/package.json b/package.json
index c90d79d..50db0b7 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "markdown-pdf",
"displayName": "Markdown PDF",
"description": "Convert Markdown to PDF",
- "version": "1.1.0",
+ "version": "1.2.0",
"publisher": "yzane",
"icon": "images/icon.png",
"engines": {
@@ -462,6 +462,7 @@
"markdown-it-container": "^2.0.0",
"markdown-it-emoji": "^1.4.0",
"markdown-it-named-headers": "0.0.4",
+ "markdown-it-plantuml": "^1.0.0",
"mkdirp": "^0.5.1",
"mustache": "^2.3.0",
"puppeteer": "^1.3.0",
diff --git a/sample/README.html b/sample/README.html
index 8c9ce9e..ee8ada8 100644
--- a/sample/README.html
+++ b/sample/README.html
@@ -414,7 +414,13 @@ Features
Sample files
@@ -423,6 +429,26 @@ Features
- png
- jpeg
+markdown-it-container
+INPUT
+::: warning
+*here be dragons*
+:::
+
+OUTPUT
+<div class="warning">
+<p><em>here be dragons</em></p>
+</div>
+
+markdown-it-plantuml
+INPUT
+@startuml
+Bob -[#red]> Alice : hello
+Alice -[#0000FF]->Bob : ok
+@enduml
+
+OUTPUT
+
Install
Chromium download starts automatically when Markdown PDF is installed and Markdown file is first opened with Visutal Studio Code.
However, it is time-consuming depending on the environment because of its large size (~ 170Mb Mac, ~ 282Mb Linux, ~ 280Mb Win).
@@ -1031,6 +1057,18 @@ markdown-pdf.styles
option
Online CSS (https://xxx/xxx.css) is applied correctly for JPG and PNG, but problems occur with PDF. #67
+1.2.0 (2018/05/03)
+
+1.1.0 (2018/05/03)
+
1.0.5 (2018/05/03)
and
diff --git a/sample/README.jpeg b/sample/README.jpeg
index 5bb589a..894b84e 100644
Binary files a/sample/README.jpeg and b/sample/README.jpeg differ
diff --git a/sample/README.pdf b/sample/README.pdf
index c633f90..9e25c21 100644
Binary files a/sample/README.pdf and b/sample/README.pdf differ
diff --git a/sample/README.png b/sample/README.png
index e38e781..97d3a12 100644
Binary files a/sample/README.png and b/sample/README.png differ