mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 04:31:27 +08:00
🎨 Use -
marker for lists when exporting Markdown https://github.com/siyuan-note/siyuan/issues/14680
This commit is contained in:
parent
b0ca44de00
commit
dc19b00ab1
@ -47,5 +47,6 @@ export const setLute = (options: ILuteOptions) => {
|
||||
});
|
||||
lute.PutEmojis(emojis);
|
||||
}
|
||||
lute.SetUnorderedListMarker("-");;
|
||||
return lute;
|
||||
};
|
||||
|
2
app/src/types/protyle.d.ts
vendored
2
app/src/types/protyle.d.ts
vendored
@ -280,6 +280,8 @@ declare class Lute {
|
||||
public HTML2Md(html: string): string;
|
||||
|
||||
public HTML2BlockDOM(html: string): string;
|
||||
|
||||
public SetUnorderedListMarker(marker: string): void;
|
||||
}
|
||||
|
||||
declare const webkitAudioContext: {
|
||||
|
4
app/stage/protyle/js/lute/lute.min.js
vendored
4
app/stage/protyle/js/lute/lute.min.js
vendored
File diff suppressed because one or more lines are too long
@ -10,7 +10,7 @@ require (
|
||||
github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
|
||||
github.com/88250/go-humanize v0.0.0-20240424102817-4f78fac47ea7
|
||||
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689
|
||||
github.com/88250/lute v1.7.7-0.20250420164316-7205b90d8833
|
||||
github.com/88250/lute v1.7.7-0.20250422121653-345debd8a77d
|
||||
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1
|
||||
github.com/ClarkThan/ahocorasick v0.0.0-20231011042242-30d1ef1347f4
|
||||
github.com/ConradIrwin/font v0.2.1
|
||||
|
@ -14,8 +14,8 @@ github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950 h1:Pa5hMiBceT
|
||||
github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
|
||||
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689 h1:39y5g7vnFAIcXhTN3IXPk7h2xBhC4a9hBTykDhHJqRY=
|
||||
github.com/88250/gulu v1.2.3-0.20250227144607-7f4570b0d689/go.mod h1:c8uVw25vW2W4dhJ/j4iYsX5H1hc19spim266jO5x2hU=
|
||||
github.com/88250/lute v1.7.7-0.20250420164316-7205b90d8833 h1:RbVRyYKUlky2hTAE9iI++uSt0p4VFeHSiQqds8qrEYY=
|
||||
github.com/88250/lute v1.7.7-0.20250420164316-7205b90d8833/go.mod h1:WYyUw//5yVw9BJnoVjx7rI/3szsISxNZCYGOqTIrV0o=
|
||||
github.com/88250/lute v1.7.7-0.20250422121653-345debd8a77d h1:WhgmfYMjgALgicBE+9yoNLNfcNkAEYHgjIeX0TdYb5c=
|
||||
github.com/88250/lute v1.7.7-0.20250422121653-345debd8a77d/go.mod h1:WYyUw//5yVw9BJnoVjx7rI/3szsISxNZCYGOqTIrV0o=
|
||||
github.com/88250/pdfcpu v0.3.14-0.20241201033812-5a93b7586a01 h1:AcFe63RXjIh1XtX/dc4Es3U8bYKjlEkvavHd1nFBOHM=
|
||||
github.com/88250/pdfcpu v0.3.14-0.20241201033812-5a93b7586a01/go.mod h1:fVfOloBzs2+W2VJCCbq60XIxc3yJHAZ0Gahv1oO0gyI=
|
||||
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1 h1:48T899JQDwyyRu9yXHePYlPdHtpJfrJEUGBMH3SMBWY=
|
||||
|
@ -2084,6 +2084,7 @@ func exportMarkdownContent0(tree *parse.Tree, cloudAssetsBase string, assetsDest
|
||||
unlink.Unlink()
|
||||
}
|
||||
|
||||
luteEngine.SetUnorderedListMarker("-")
|
||||
renderer := render.NewProtyleExportMdRenderer(tree, luteEngine.RenderOptions)
|
||||
ret = gulu.Str.FromBytes(renderer.Render())
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user