0.2.2
Pre-release
Pre-release
-
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
veganotation will be rendered by vega. - Code block with
vega-litenotation will be rendered by vega-lite. - Both
JSONandYAMLinputs are supported.
You can also @import a
JSONorYAMLfile asvegadiagram, 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)ditaais 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.

