mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-03 11:37:36 +00:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
diff --git a/dist/markdown-Bowe09rB.js b/dist/markdown-Bowe09rB.js
|
|||
|
|
index 0fe63ff712e07c9c2188711fa0940f7a7d8f7d74..44435d91a2f5a6711512981c9bcaddedc1760be4 100644
|
||
|
|
--- a/dist/markdown-Bowe09rB.js
|
||
|
|
+++ b/dist/markdown-Bowe09rB.js
|
||
|
|
@@ -1141,7 +1141,14 @@ function Yf(e, r, t) {
|
||
|
|
case "sentence": return Yi(e, t);
|
||
|
|
case "word": return Li(e);
|
||
|
|
case "whitespace": {
|
||
|
|
- let { next: i } = e, u = i && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value) ? "never" : r.proseWrap;
|
||
|
|
+ let { next: i, previous: oxfmtFencePrev } = e;
|
||
|
|
+ // Preserve line breaks that sit directly against a `:::` container
|
||
|
|
+ // directive fence, so `proseWrap: "never"` keeps the opening/closing
|
||
|
|
+ // fence on their own lines instead of joining them into the prose (which
|
||
|
|
+ // breaks the directive). Ordinary prose still wraps per proseWrap.
|
||
|
|
+ // See prettier/prettier#19040.
|
||
|
|
+ let oxfmtIsFence = (w) => w != null && typeof w.value === "string" && w.value.startsWith(":::");
|
||
|
|
+ let u = oxfmtIsFence(oxfmtFencePrev) || oxfmtIsFence(i) ? "preserve" : i && /^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value) ? "never" : r.proseWrap;
|
||
|
|
return qt(e, n.value, u);
|
||
|
|
}
|
||
|
|
case "emphasis": {
|