version 1.29, 2018/12/15 19:30:26 |
version 1.31, 2019/07/01 22:56:24 |
Line 261 md_act(enum roff_tok tok) |
|
Line 261 md_act(enum roff_tok tok) |
|
} |
} |
|
|
void |
void |
markdown_mdoc(void *arg, const struct roff_man *mdoc) |
markdown_mdoc(void *arg, const struct roff_meta *mdoc) |
{ |
{ |
outflags = MD_Sm; |
outflags = MD_Sm; |
md_word(mdoc->meta.title); |
md_word(mdoc->title); |
if (mdoc->meta.msec != NULL) { |
if (mdoc->msec != NULL) { |
outflags &= ~MD_spc; |
outflags &= ~MD_spc; |
md_word("("); |
md_word("("); |
md_word(mdoc->meta.msec); |
md_word(mdoc->msec); |
md_word(")"); |
md_word(")"); |
} |
} |
md_word("-"); |
md_word("-"); |
md_word(mdoc->meta.vol); |
md_word(mdoc->vol); |
if (mdoc->meta.arch != NULL) { |
if (mdoc->arch != NULL) { |
md_word("("); |
md_word("("); |
md_word(mdoc->meta.arch); |
md_word(mdoc->arch); |
md_word(")"); |
md_word(")"); |
} |
} |
outflags |= MD_sp; |
outflags |= MD_sp; |
Line 283 markdown_mdoc(void *arg, const struct roff_man *mdoc) |
|
Line 283 markdown_mdoc(void *arg, const struct roff_man *mdoc) |
|
md_nodelist(mdoc->first->child); |
md_nodelist(mdoc->first->child); |
|
|
outflags |= MD_sp; |
outflags |= MD_sp; |
md_word(mdoc->meta.os); |
md_word(mdoc->os); |
md_word("-"); |
md_word("-"); |
md_word(mdoc->meta.date); |
md_word(mdoc->date); |
putchar('\n'); |
putchar('\n'); |
} |
} |
|
|
Line 1290 md_post_It(struct roff_node *n) |
|
Line 1290 md_post_It(struct roff_node *n) |
|
while ((n = n->prev) != NULL && n->type != ROFFT_HEAD) |
while ((n = n->prev) != NULL && n->type != ROFFT_HEAD) |
i++; |
i++; |
|
|
/* |
/* |
* If a width was specified for this column, |
* If a width was specified for this column, |
* subtract what printed, and |
* subtract what printed, and |
* add the same spacing as in mdoc_term.c. |
* add the same spacing as in mdoc_term.c. |