diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a74d632..a2e06cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: true - name: Set up PDM uses: pdm-project/setup-pdm@v3 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ea3ea5..4423f72 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Fix a rendering bug when line breaks exist in a link text. [#126](https://github.com/frostming/marko/issue/126) - Drop support of Python 3.6. - Update the GFM spec to the latest master branch. +- Fix a precedence issue of parsing strikethroughs in GFM. ## v1.2.2(2022-09-22) diff --git a/marko/ext/gfm/elements.py b/marko/ext/gfm/elements.py index f2b0886..fd1e881 100644 --- a/marko/ext/gfm/elements.py +++ b/marko/ext/gfm/elements.py @@ -34,9 +34,10 @@ class InlineHTML(inline.InlineHTML): class Strikethrough(inline.InlineElement): - pattern = re.compile(r"~~([^~]+)~~") + pattern = re.compile(r"(?