1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-24 23:26:50 +02:00

Desktop: Resolves #4750 Disappearing text in markdown editor (#4781)

Fixes #4750 by preventing automatic deletion of list elements in certain cases
This commit is contained in:
Adarsh Singh
2021-04-02 09:09:42 +05:30
committed by GitHub
parent 829a245858
commit f59e312ee2
6 changed files with 107 additions and 2 deletions

View File

@ -5,7 +5,7 @@ const MarkdownIt = require('markdown-it');
// Taken from codemirror/addon/edit/continuelist.js
const listRegex = /^(\s*)([*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]\s))(\s*)/;
const emptyListRegex = /^(\s*)([*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/;
const emptyListRegex = /^(\s*)([*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s+)$/;
export interface MarkdownTableHeader {
name: string;