Skip to content

0.2.2

Pre-release
Pre-release

Choose a tag to compare

@shd101wyy shd101wyy released this 28 Jul 20:34
· 280 commits to master since this 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 vega notation will be rendered by vega.
    • Code block with vega-lite notation will be rendered by vega-lite.
    • Both JSON and YAML inputs are supported.

    screen shot 2017-07-28 at 7 59 58 am

    You can also @import a JSON or YAML file as vega diagram, for example:

    \@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.

screen shot 2017-07-28 at 8 11 15 am