mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
e382d9db0e
commit
e33084ce53
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
}
|
||||
let html = blockElement.outerHTML;
|
||||
let focusHR = false;
|
||||
if (editElement.textContent === "---" && type !== "NodeCodeBlock") {
|
||||
if (["---", "___", "***"].includes(editElement.textContent) && type !== "NodeCodeBlock") {
|
||||
html = `<div data-node-id="${id}" data-type="NodeThematicBreak" class="hr"><div></div></div>`;
|
||||
const nextBlockElement = getNextBlock(editElement);
|
||||
if (nextBlockElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue