Skip to content

Instantly share code, notes, and snippets.

@uchan-nos
Last active June 20, 2018 05:23
Show Gist options
  • Save uchan-nos/01f1f5fe67816ba1b6c3508bf1b0dff0 to your computer and use it in GitHub Desktop.
Save uchan-nos/01f1f5fe67816ba1b6c3508bf1b0dff0 to your computer and use it in GitHub Desktop.
investigation log about a "superfence vanishing" bug of pymdown-extensions

This is an investigation log about a bug of pymdown-extensions. Here's been discussed in Japanese. Thanks.

対象

2018/06/19 時点の master にはこのバグが存在している.(いつからバグがあるかは分からない)

バグの概要

MkDocs で次のような設定を書き,python-markdown の admonition と pymdown-extensions の superfences を有効にしておく.

markdown_extensions:
  - admonition:
  - pymdownx.superfences:

すると,次のようなドキュメントにおいて this is code block 2/2 の部分が変換後の HTML からは完全に消えてしまう.

```
this is code block 1/2
```

!!! note
    this is note admonition 1/2

```
this is code block 2/2
```
!!! note
    this is note admonition 2/2

end of document
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment