File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34739,7 +34739,7 @@ const image_1 = __nccwpck_require__(7828);
3473934739const strings_1 = __nccwpck_require__(3063);
3474034740const hasHeader = (content) => content.match(/^#\s+/);
3474134741const cleanUp = (content) => content
34742- .replace(/^(#\s+.+\n+)(\s*<picture>[.\w\W]+<\/picture>) \n?/, '$1')
34742+ .replace(/^(#\s+.+\n+)(\s*<picture>[.\w\W]+<\/picture>\n?) /, '$1')
3474334743 .replace(/^(#\s+.+\n+)(!\[.+]\(.*\)\n?){1,2}\n?/, '$1\n')
3474434744 .replace(/^(#\s+.+\n+)(<img\s.*\/>\n?){1,2}\n?/, '$1\n');
3474534745const setPreview = (content, config) => {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { titleCase } from './strings'
55const hasHeader = ( content : string ) => content . match ( / ^ # \s + / )
66
77const cleanUp = ( content : string ) : string => content
8- . replace ( / ^ ( # \s + .+ \n + ) ( \s * < p i c t u r e > [ . \w \W ] + < \/ p i c t u r e > ) \n ? / , '$1' )
8+ . replace ( / ^ ( # \s + .+ \n + ) ( \s * < p i c t u r e > [ . \w \W ] + < \/ p i c t u r e > \n ? ) / , '$1' )
99 . replace ( / ^ ( # \s + .+ \n + ) ( ! \[ .+ ] \( .* \) \n ? ) { 1 , 2 } \n ? / , '$1\n' )
1010 . replace ( / ^ ( # \s + .+ \n + ) ( < i m g \s .* \/ > \n ? ) { 1 , 2 } \n ? / , '$1\n' )
1111
You can’t perform that action at this time.
0 commit comments