From 3836163a2c5b3ebb9fa23c95fd408715e5ea58b5 Mon Sep 17 00:00:00 2001 From: Ole Eskild Steensen Date: Thu, 7 Jul 2022 18:03:59 +0200 Subject: [PATCH] Add support for plantUML --- .eleventy.js | 4 ++++ package-lock.json | 11 +++++++++++ package.json | 1 + 3 files changed, 16 insertions(+) diff --git a/.eleventy.js b/.eleventy.js index 483c292..0d9811f 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -28,6 +28,10 @@ module.exports = function(eleventyConfig) { ulClass: 'task-list', liClass: 'task-list-item' }) + .use(require('markdown-it-plantuml'), { + openMarker: '```plantuml', + closeMarker: '```' + }) .use(namedHeadingsFilter) .use(function(md) { //https://github.com/DCsunset/markdown-it-mermaid-plugin diff --git a/package-lock.json b/package-lock.json index 62233ca..8edb919 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19,6 +19,7 @@ "markdown-it": "^12.3.2", "markdown-it-footnote": "^3.0.3", "markdown-it-mathjax3": "^4.3.1", + "markdown-it-plantuml": "^1.4.1", "markdown-it-task-checkbox": "^1.0.6" }, "devDependencies": { @@ -3511,6 +3512,11 @@ "mathjax-full": "^3.2.0" } }, + "node_modules/markdown-it-plantuml": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/markdown-it-plantuml/-/markdown-it-plantuml-1.4.1.tgz", + "integrity": "sha512-13KgnZaGYTHBp4iUmGofzZSBz+Zj6cyqfR0SXUIc9wgWTto5Xhn7NjaXYxY0z7uBeTUMlc9LMQq5uP4OM5xCHg==" + }, "node_modules/markdown-it-task-checkbox": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/markdown-it-task-checkbox/-/markdown-it-task-checkbox-1.0.6.tgz", @@ -9259,6 +9265,11 @@ "mathjax-full": "^3.2.0" } }, + "markdown-it-plantuml": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/markdown-it-plantuml/-/markdown-it-plantuml-1.4.1.tgz", + "integrity": "sha512-13KgnZaGYTHBp4iUmGofzZSBz+Zj6cyqfR0SXUIc9wgWTto5Xhn7NjaXYxY0z7uBeTUMlc9LMQq5uP4OM5xCHg==" + }, "markdown-it-task-checkbox": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/markdown-it-task-checkbox/-/markdown-it-task-checkbox-1.0.6.tgz", diff --git a/package.json b/package.json index 53e0a94..67f0dbc 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,7 @@ "markdown-it": "^12.3.2", "markdown-it-footnote": "^3.0.3", "markdown-it-mathjax3": "^4.3.1", + "markdown-it-plantuml": "^1.4.1", "markdown-it-task-checkbox": "^1.0.6" } }