Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: address a minor isssue when there is content after last asterisk/underscore
Andrei Dolgova8cb58cb4a69
diff --git a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text_handler.dart b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text_handler.dartindex 298ee6128e..1f21cf0126 100644--- a/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text_handler.dart+++ b/frontend/app_flowy/packages/appflowy_editor/lib/src/service/internal_key_event_handlers/markdown_syntax_to_styled_text_handler.dart@@ -49,7 +49,7 @@ ShortcutEventHandler doubleAsterisksToBold = (editorState, event) {..formatText(textNode,thirdToLastAsteriskIndex,- selection.end.offset - thirdToLastAsteriskIndex - 2,+ selection.end.offset - thirdToLastAsteriskIndex - 3,{BuiltInAttributeKey.bold: true,BuiltInAttributeKey.defaultFormating: true,@@ -115,7 +115,7 @@ ShortcutEventHandler doubleUnderscoresToBold = (editorState, event) {..formatText(textNode,thirdToLastUnderscoreIndex,- selection.end.offset - thirdToLastUnderscoreIndex - 2,+ selection.end.offset - thirdToLastUnderscoreIndex - 3,{BuiltInAttributeKey.bold: true,BuiltInAttributeKey.defaultFormating: true,