More or less functional

This commit is contained in:
Zef Hemel
2022-06-14 09:45:22 +02:00
parent c25a53357d
commit 5dbe71568e
4 changed files with 70 additions and 51 deletions
+3 -1
View File
@@ -154,7 +154,9 @@ export const insertNewlineContinueMarkup: StateCommand = ({
{ doc } = state;
let dont = null,
changes = state.changeByRange((range) => {
if (!range.empty || !markdownLanguage.isActiveAt(state, range.from))
if (!range.empty)
// TODO: Hack due to languagefacet stuff not working
// || !markdownLanguage.isActiveAt(state, range.from))
return (dont = { range });
let pos = range.from,
line = doc.lineAt(pos);