version 1.8, 2017/03/07 15:31:24 |
version 1.12, 2017/03/08 17:51:58 |
Line 375 md_stack(char c) |
|
Line 375 md_stack(char c) |
|
static void |
static void |
md_preword(void) |
md_preword(void) |
{ |
{ |
|
const char *cp; |
|
|
/* |
/* |
* If a list block is nested inside a code block or a blockquote, |
* If a list block is nested inside a code block or a blockquote, |
* blank lines for paragraph breaks no longer work; instead, |
* blank lines for paragraph breaks no longer work; instead, |
Line 405 md_preword(void) |
|
Line 407 md_preword(void) |
|
|
|
if (outflags & (MD_nl | MD_br | MD_sp)) { |
if (outflags & (MD_nl | MD_br | MD_sp)) { |
putchar('\n'); |
putchar('\n'); |
fputs(md_stack('\0'), stdout); |
for (cp = md_stack('\0'); *cp != '\0'; cp++) { |
|
putchar(*cp); |
|
if (*cp == '>') |
|
putchar(' '); |
|
} |
outflags &= ~(MD_nl | MD_br | MD_sp); |
outflags &= ~(MD_nl | MD_br | MD_sp); |
escflags = ESC_BOL; |
escflags = ESC_BOL; |
outcount = 0; |
outcount = 0; |
Line 529 md_word(const char *s) |
|
Line 535 md_word(const char *s) |
|
bs = escflags & ESC_HYP && !code_blocks; |
bs = escflags & ESC_HYP && !code_blocks; |
break; |
break; |
case ')': |
case ')': |
bs = escflags & ESC_PAR && !code_blocks; |
bs = escflags & (ESC_NUM | ESC_PAR) && !code_blocks; |
break; |
break; |
case '*': |
case '*': |
case '[': |
case '[': |
Line 1145 md_pre_It(struct roff_node *n) |
|
Line 1151 md_pre_It(struct roff_node *n) |
|
|
|
case ROFFT_HEAD: |
case ROFFT_HEAD: |
bln = n->parent->parent; |
bln = n->parent->parent; |
if (bln->norm->Bl.comp == 0) |
if (bln->norm->Bl.comp == 0 && |
|
bln->norm->Bl.type != LIST_column) |
outflags |= MD_sp; |
outflags |= MD_sp; |
outflags |= MD_nl; |
outflags |= MD_nl; |
|
|
Line 1171 md_pre_It(struct roff_node *n) |
|
Line 1178 md_pre_It(struct roff_node *n) |
|
break; |
break; |
case LIST_enum: |
case LIST_enum: |
md_preword(); |
md_preword(); |
printf("%d.\t", ++bln->norm->Bl.count); |
if (bln->norm->Bl.count < 99) |
|
bln->norm->Bl.count++; |
|
printf("%d.\t", bln->norm->Bl.count); |
escflags &= ~ESC_FON; |
escflags &= ~ESC_FON; |
break; |
break; |
|
case LIST_column: |
|
outflags |= MD_br; |
|
return 0; |
default: |
default: |
return 0; |
return 0; |
} |
} |