mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
add a 'section_break' flag into the line structure to keep the contents of adjacent blockquote chunks as separate blocks inside the blockquote
This commit is contained in:
@@ -684,6 +684,8 @@ fencedcodechunk(Line *first, mkd_flag_t *flags, int *yes)
|
||||
* past the closing fence
|
||||
*/
|
||||
for ( r = first->next; r; r = r->next ) {
|
||||
if ( r->section_break )
|
||||
break;
|
||||
if ( iscodefence(r, first, flags) ) {
|
||||
if (S(first->text) - first->count > 0) {
|
||||
char *lang_attr = T(first->text) + first->count;
|
||||
@@ -856,6 +858,8 @@ quoteblock(Paragraph *p, mkd_flag_t *flags)
|
||||
t = q;
|
||||
break;
|
||||
}
|
||||
if ( q != t->next )
|
||||
t->section_break = 1;
|
||||
}
|
||||
if ( isdivmarker(p->text,0,flags) ) {
|
||||
char *prefix = "class";
|
||||
|
||||
Reference in New Issue
Block a user