fix(fmt/markdown): fix regression with multi-line footnotes and inline math (#25222)

What happened in this specific case was the parser used to actually
treat these as code block. Now it treats it as a multi-paragraph
footnote and that caused the issue

- https://github.com/dprint/dprint-plugin-markdown/pull/121/files
This commit is contained in:
David Sherret 2024-08-26 14:36:24 -04:00 committed by Luca Casonato
parent 6e54959bb2
commit bb5d7d9ed6
No known key found for this signature in database
GPG Key ID: 01A83EB62563811F
3 changed files with 5 additions and 5 deletions

View File

@ -67,9 +67,9 @@
"plugins": [
"https://plugins.dprint.dev/typescript-0.91.6.wasm",
"https://plugins.dprint.dev/json-0.19.3.wasm",
"https://plugins.dprint.dev/markdown-0.17.6.wasm",
"https://plugins.dprint.dev/markdown-0.17.8.wasm",
"https://plugins.dprint.dev/toml-0.6.2.wasm",
"https://plugins.dprint.dev/exec-0.5.0.json@8d9972eee71fa1590e04873540421f3eda7674d0f1aae3d7c788615e7b7413d0",
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.4.0.wasm"
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.5.0.wasm"
]
}

4
Cargo.lock generated
View File

@ -2517,9 +2517,9 @@ dependencies = [
[[package]]
name = "dprint-plugin-markdown"
version = "0.17.6"
version = "0.17.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ef42762177b1a74b52b98fe946cb88fa4a01f149b56208de72b43d2be0a54c6"
checksum = "934a8e33f6f373b2fb66c288a468e3dae9a56a6c66bfecd5504fe566131afd3f"
dependencies = [
"anyhow",
"dprint-core",

View File

@ -102,7 +102,7 @@ dissimilar = "=1.0.4"
dotenvy = "0.15.7"
dprint-plugin-json = "=0.19.3"
dprint-plugin-jupyter = "=0.1.3"
dprint-plugin-markdown = "=0.17.6"
dprint-plugin-markdown = "=0.17.8"
dprint-plugin-typescript = "=0.91.6"
env_logger = "=0.10.0"
fancy-regex = "=0.10.0"