Use the enable_uml
Feature
#146
-
In a MarkDown document I use created the following frontmatter: ---
# Meta Data
Title: Some Title
Summary: Few Words
Author:
- Royi
# Settings
settings:
enable_uml: true
image_path_conversion: base64
markdown_extensions:
- markdown.extensions.footnotes
- markdown.extensions.fenced_code
- markdown.extensions.tables
- markdown.extensions.admonition
- markdown.extensions.md_in_html
- markdown.extensions.toc:
title: Table of Contents
toc_depth: 2-3
- pymdownx.arithmatex:
generic: true
smart_dollar: false
allow_css_overrides: true
--- In my Markdown Preview settings I defined: {
"js": {
"markdown": [
"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.9/MathJax.js",
"res://MarkdownPreview/js/math_config.js",
// Required libraries to transform UML notation
"https://cdnjs.cloudflare.com/ajax/libs/raphael/2.2.7/raphael.min.js",
"https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js",
"https://cdnjs.cloudflare.com/ajax/libs/js-sequence-diagrams/1.0.6/sequence-diagram-min.js",
"https://cdnjs.cloudflare.com/ajax/libs/flowchart/1.6.5/flowchart.min.js",
// This library applies the above libraries to the fenced code blocks `flow` and `sequence`.
"res://MarkdownPreview/js/uml.js",
]
}, I did that by following UML Support. The generated HTML has:
The MarkDown text (The example in
Generated this HTML:
Yet nothing is rendered. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
I don't have an answer yet, but it may be due to the fact that you are indenting your frontmatter when you don't need to, but I haven't run through your example yet. |
Beta Was this translation helpful? Give feedback.
-
I totally agree on the generic path. Hence I think you should, at the moment, update the documentation as the impression I got from it is that I can have some UML support using MarkDown Preview by itself. Regarding the title, see my front matter, I use it, yet it doesn't change the |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, this discussion had a bunch of different topics and not a specific, definitive post that answered the question.
|
Beta Was this translation helpful? Give feedback.
Unfortunately, this discussion had a bunch of different topics and not a specific, definitive post that answered the question.
master
and will be available in the next release.enable_uml
option was from old legacy behavior and the reference has been removed from the documentation.master
and will be available in the next release.