Skip to content

Commit e25ef26

Browse files
committed
only break and test syntax at white space
1 parent 0744e2c commit e25ef26

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/marked.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,7 @@ inline.gfm = merge({}, inline.normal, {
501501
text: replace(inline.text)
502502
(']|', '~]|')
503503
('|', '|https?://|')
504+
('?=', '?=\s')
504505
()
505506
});
506507

@@ -517,9 +518,10 @@ inline.efm = merge({}, inline.gfm, {
517518
strike: /^-(\S+)-/,
518519
cite: /^~(\S+)~/,
519520
wiki: /^\[\[([^\|\]]+)(?:\|([^\]]+))?\]\]/,
520-
text: replace(inline.gfm.text)
521-
(']|', '-]|')
522-
()
521+
text: /^.*?([\s\n]|$)/
522+
// text: replace(inline.gfm.text)
523+
// (']|', '-]|')
524+
// ()
523525
});
524526

525527

0 commit comments

Comments
 (0)