Releases: shd101wyy/vscode-markdown-preview-enhanced
0.2.9
0.2.8
0.2.8
- Upgraded mume to 0.2.2.
- Added
enableCriticMarkupSyntax
option. Syntax guide. - Added
toc
config to front-matter for[TOC]
and sidebar TOC #606. - Fixed ordered list TODO box bug #592.
- Upgraded
KaTeX
to version0.8.3
. - Changed
MathJax
CDN url. - Fixed markdown export math issue #601.
- Added
- Removed
ctrl-shift-i
keybord shortcut. - Added
Open Preview
command to context menu.
0.2.7
0.2.6
0.2.5
-
Fixed revealjs html export style bug.
-
Supported configuring attributes for diagram containers.
For example:```puml {.center} // your code here ```
will add
class="center"
to the container. -
By default, all exported files will use
github-light.css
style. You can use your preview theme for export by settingprintBackground
totrue
from the extension settings, or addprint_background:true
to front-matter.
0.2.4
0.2.3
-
The old feature WaveDrom diagram is now supported again.
-
The doc of customization css is updated, please check it here.
-
Sidebar TOC is now supported in HTML export, and it is enabled by default.
You can configure the sidebar TOC by front-matter. For more information, please check this doc.
0.2.2
-
Deprecated the old way of defining attribtues (still supported but not recommened) #529. Now attributes should be defined like below in order to be compatible with the pandoc parser:
{#identifier .class .class key=value key=value}
And here are a few changes:
# Hi {#id .class1 .class2} Show `line-numbers` ```javascript {.line-numbers} x = 1 ``` ```python {cmd=true output="markdown"} print("**Hi there**") ``` <!-- slide vertical=true .slide-class1 .slide-class2 #slide-id --> \@import "test.png" {width=50% height=30%}
-
Added a few more preview themes.
-
Supported vega and vega-lite. #524.
- Code block with
vega
notation will be rendered by vega. - Code block with
vega-lite
notation will be rendered by vega-lite. - Both
JSON
andYAML
inputs are supported.
You can also @import a
JSON
orYAML
file asvega
diagram, for example: - Code block with
\@import "your_vega_source.json" {as:"vega"} \@import "your_vega_lite_source.json" {as:"vega-lite"}
-
Supported ditaa.
ditaa can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics. (Java is required to be installed)ditaa
is intergrated with code chunk, for example:
```ditaa {cmd=true args=["-E"]} +--------+ +-------+ +-------+ | | --+ ditaa +--> | | | Text | +-------+ |diagram| |Document| |!magic!| | | | {d}| | | | | +---+----+ +-------+ +-------+ : ^ | Lots of work | +-------------------------+ ```
shift-enter to run code chunk.
set{hide=true}
to hide code block.
set{run_on_save=true}
to render ditaa when you save the markdown file.