File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Units/parser-markdown.r/simple-markdown.d Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ F input.md /^F$/;" s chapter:C end:106 sectionMarker:-
2828G input.md /^ G$/;" s chapter:C end:109 sectionMarker:-
2929H input.md /^ H$/;" s chapter:C end:112 sectionMarker:-
3030I input.md /^ I$/;" s chapter:C end:128 sectionMarker:-
31- C\\# input.md /^# C\\#$/;" c end:143 sectionMarker:#
31+ C\\# input.md /^# C\\#$/;" c end:146 sectionMarker:#
3232J input.md /^J$/;" s chapter:C\\# end:133 sectionMarker:-
3333K input.md /^K$/;" s chapter:C\\# end:136 sectionMarker:-
34- L input.md /^L$/;" s chapter:C\\# end:143 sectionMarker:-
34+ L input.md /^L$/;" s chapter:C\\# end:146 sectionMarker:-
3535x input.md /^function x$/;" f
3636y input.md /^function y$/;" f
3737z input.md /^z()$/;" f
Original file line number Diff line number Diff line change @@ -141,3 +141,6 @@ ignored
141141 -
142142
143143``` foo ```
144+
145+ > quoted
146+ ---
Original file line number Diff line number Diff line change @@ -256,13 +256,16 @@ static void findMarkdownTags(void)
256256 line_processed = true;
257257
258258 /* if it's a title underline, or a delimited block marking character */
259- else if (line [pos ] == '=' || line [pos ] == '-' || line [pos ] == '#' )
259+ else if (line [pos ] == '=' || line [pos ] == '-' || line [pos ] == '#' || line [ pos ] == '>' )
260260 {
261261 int n_same ;
262262 for (n_same = 1 ; line [n_same ] == line [pos ]; ++ n_same );
263263
264+ /* quote */
265+ if (line [pos ] == '>' )
266+ ; /* just to make sure line_processed = true so it won't be in a heading */
264267 /* is it a two line title */
265- if (line [pos ] == '=' || line [pos ] == '-' )
268+ else if (line [pos ] == '=' || line [pos ] == '-' )
266269 {
267270 char marker [2 ] = { line [pos ], '\0' };
268271 int kind = line [pos ] == '=' ? K_CHAPTER : K_SECTION ;
You can’t perform that action at this time.
0 commit comments