revert: don't force multiline flag for editor component patterns (#3089)
* revert: don't force multiline flag for editor component patterns refs: 338c1b68d2865a20fed851295451175b840983d4, 4839160ee6126adfbab7bfa58452560090c00737 github issues: 3088, 3086 * fix: only trim ending white spaces/line breaks when parsing shortcodes remark validates the value of the 'eat' function using a prefix match between the original value and the value provided. Trimming the start can break that validation * fix: change console log to warn
This commit is contained in:
committed by
Shawn Erquhart
parent
492f6f6a20
commit
c4cbae7725
@ -26,7 +26,7 @@ export default function createEditorComponent(config) {
|
||||
icon,
|
||||
widget,
|
||||
// enforce multiline flag, exclude others
|
||||
pattern: new RegExp(pattern, 'm'),
|
||||
pattern,
|
||||
fromBlock: bind(fromBlock) || (() => ({})),
|
||||
toBlock: bind(toBlock) || (() => 'Plugin'),
|
||||
toPreview: bind(toPreview) || (!widget && (bind(toBlock) || (() => 'Plugin'))),
|
||||
|
Reference in New Issue
Block a user