lepture/mistune

I created some plugins and directive, should I create a PR

Neutree opened this issue · 2 comments

directives

(note that a blank line is required here)
.. tabset::tab title (optional)
    :id: tabset1

    ## Label one

    Content 1, you can use Markdown syntax
    ```kotlin
      fun main() {
          println("Hello World")
      }
    ```

    ## Label two

    Content 2, you can use Markdown syntax
    ```java
      public class Main {
          public static void main(String[] args) {
              System.out.println("Hello World");
          }
      }
    ```

image

.. details::Title, click to expand

    Content 1, you can use Markdown syntax
    ```kotlin
      fun main() {
          println("Hello World")
      }
    ```

.. details:: title, expanded by default
    :open:true

    Content 1, you can use Markdown syntax
    ```kotlin
      fun main() {
          println("Hello World")
      }
    ```

plugins

y = x^2^
Water: H~2~O

@Neutree from v3, we have a community file to list 3rd party plugins. You can add your plugin here: https://mistune.lepture.com/en/latest/community.html

But in v3, we have built-in plugins for superscript and subscript. Please see: https://mistune.lepture.com/en/latest/plugins.html

I've just released v3.0.0rc1, you can upgrade teedoc to mistune v3 for the powerful plugins. It is quite stable now, I'm using v3 in production in Typlog.

ok got it, thanks