Skip to content

Commit

Permalink
Merge pull request #108 from pyconjp/patch-fix-double-escape
Browse files Browse the repository at this point in the history
Fix: double escape problem of MyST-Parser
プレビューも問題ないのでマージします。
myst-parser側の修正完了したら(いつになるかは分かりませんが、)外したい。
  • Loading branch information
koedoyoshida authored Sep 14, 2024
2 parents de8a3dd + 844c549 commit d8338e5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/
env/
.vscode/
**/__pycache__/
12 changes: 12 additions & 0 deletions source/_ext/myst_patch.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from myst_parser.mdit_to_docutils import base

def setup(app):
# refs: https://github.com/executablebooks/MyST-Parser/issues/760
base.escapeHtml = lambda s: s

return {
'version': '0.1',
'env_version': 1,
'parallel_read_safe': True,
'parallel_write_safe': True,
}
5 changes: 3 additions & 2 deletions source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
import os
import sys
# sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('_ext'))

# -- Project information -----------------------------------------------------

Expand All @@ -28,6 +28,7 @@
# ones.
extensions = [
"myst_parser",
"myst_patch",
'sphinxext.opengraph',
]

Expand Down
3 changes: 1 addition & 2 deletions source/policies/internet-policy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[English translation of Internet connection service provision policy](https://bit.ly/3TsvXCx)
<!-- Link to https://www-pycon-jp.translate.goog/policies/internet-policy.html?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja&_x_tr_pto=wapp -->
[English translation of Internet connection service provision policy](https://www-pycon-jp.translate.goog/policies/internet-policy.html?_x_tr_sl=ja&_x_tr_tl=en&_x_tr_hl=ja&_x_tr_pto=wapp)

# インターネット接続サービス提供ポリシー

Expand Down

0 comments on commit d8338e5

Please sign in to comment.