Updated markdown utils to use underscore instead of dash
• Updated: - markdown utils to use underscore instead of dash
This commit is contained in:
parent
a72ea2b525
commit
adf4c49c82
|
@ -8,8 +8,8 @@ import {
|
||||||
convertFromRaw,
|
convertFromRaw,
|
||||||
ContentState,
|
ContentState,
|
||||||
} from 'draft-js'
|
} from 'draft-js'
|
||||||
import draftToMarkdown from '../features/ui/util/draft-to-markdown'
|
import draftToMarkdown from '../features/ui/util/draft_to_markdown'
|
||||||
import markdownToDraft from '../features/ui/util/markdown-to-draft'
|
import markdownToDraft from '../features/ui/util/markdown_to_draft'
|
||||||
import { urlRegex } from '../features/ui/util/url_regex'
|
import { urlRegex } from '../features/ui/util/url_regex'
|
||||||
import classNames from 'classnames/bind'
|
import classNames from 'classnames/bind'
|
||||||
import RichTextEditorBar from './rich_text_editor_bar'
|
import RichTextEditorBar from './rich_text_editor_bar'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// https://raw.githubusercontent.com/Rosey/markdown-draft-js/main/src/draft-to-markdown.js
|
// https://raw.githubusercontent.com/Rosey/markdown-draft-js/main/src/draft_to_markdown.js
|
||||||
const TRAILING_WHITESPACE = /[ \u0020\t\n]*$/;
|
const TRAILING_WHITESPACE = /[ \u0020\t\n]*$/;
|
||||||
|
|
||||||
// This escapes some markdown but there's a few cases that are TODO -
|
// This escapes some markdown but there's a few cases that are TODO -
|
|
@ -1,4 +1,4 @@
|
||||||
// https://raw.githubusercontent.com/Rosey/markdown-draft-js/main/src/markdown-to-draft.js
|
// https://raw.githubusercontent.com/Rosey/markdown-draft-js/main/src/markdown_to_draft.js
|
||||||
import { Remarkable } from 'remarkable';
|
import { Remarkable } from 'remarkable';
|
||||||
|
|
||||||
const TRAILING_NEW_LINE = /\n$/;
|
const TRAILING_NEW_LINE = /\n$/;
|
Loading…
Reference in New Issue