Changeset View
Changeset View
Standalone View
Standalone View
contrib/mandoc/mdoc_markdown.c
Show First 20 Lines • Show All 220 Lines • ▼ Show 20 Lines | static const struct md_act md_acts[MDOC_MAX - MDOC_Dd] = { | ||||
{ NULL, NULL, NULL, NULL, NULL }, /* Brc */ | { NULL, NULL, NULL, NULL, NULL }, /* Brc */ | ||||
{ NULL, NULL, md_post_pc, NULL, NULL }, /* %C */ | { NULL, NULL, md_post_pc, NULL, NULL }, /* %C */ | ||||
{ NULL, md_pre_skip, NULL, NULL, NULL }, /* Es */ | { NULL, md_pre_skip, NULL, NULL, NULL }, /* Es */ | ||||
{ md_cond_body, md_pre_En, md_post_En, NULL, NULL }, /* En */ | { md_cond_body, md_pre_En, md_post_En, NULL, NULL }, /* En */ | ||||
{ NULL, NULL, NULL, NULL, NULL }, /* Dx */ | { NULL, NULL, NULL, NULL, NULL }, /* Dx */ | ||||
{ NULL, NULL, md_post_pc, NULL, NULL }, /* %Q */ | { NULL, NULL, md_post_pc, NULL, NULL }, /* %Q */ | ||||
{ NULL, md_pre_Lk, md_post_pc, NULL, NULL }, /* %U */ | { NULL, md_pre_Lk, md_post_pc, NULL, NULL }, /* %U */ | ||||
{ NULL, NULL, NULL, NULL, NULL }, /* Ta */ | { NULL, NULL, NULL, NULL, NULL }, /* Ta */ | ||||
{ NULL, NULL, NULL, NULL, NULL }, /* Sl */ | |||||
}; | }; | ||||
static const struct md_act *md_act(enum roff_tok); | static const struct md_act *md_act(enum roff_tok); | ||||
static int outflags; | static int outflags; | ||||
#define MD_spc (1 << 0) /* Blank character before next word. */ | #define MD_spc (1 << 0) /* Blank character before next word. */ | ||||
#define MD_spc_force (1 << 1) /* Even before trailing punctuation. */ | #define MD_spc_force (1 << 1) /* Even before trailing punctuation. */ | ||||
#define MD_nonl (1 << 2) /* Prevent linebreak in markdown code. */ | #define MD_nonl (1 << 2) /* Prevent linebreak in markdown code. */ | ||||
#define MD_nl (1 << 3) /* Break markdown code line. */ | #define MD_nl (1 << 3) /* Break markdown code line. */ | ||||
▲ Show 20 Lines • Show All 1,355 Lines • Show Last 20 Lines |