[BACK]Return to mdoc_markdown.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/mdoc_markdown.c between version 1.3 and 1.4

version 1.3, 2017/03/06 14:58:10 version 1.4, 2017/03/07 12:39:01
Line 129  static const struct md_act md_acts[MDOC_MAX + 1] = {
Line 129  static const struct md_act md_acts[MDOC_MAX + 1] = {
         { NULL, md_pre_Fn, md_post_Fn, NULL, NULL }, /* Fn */          { NULL, md_pre_Fn, md_post_Fn, NULL, NULL }, /* Fn */
         { NULL, md_pre_Fd, md_post_raw, "*", "*" }, /* Ft */          { NULL, md_pre_Fd, md_post_raw, "*", "*" }, /* Ft */
         { NULL, md_pre_raw, md_post_raw, "**", "**" }, /* Ic */          { NULL, md_pre_raw, md_post_raw, "**", "**" }, /* Ic */
         { NULL, md_pre_In, md_post_In, "*", "*" }, /* In */          { NULL, md_pre_In, md_post_In, NULL, NULL }, /* In */
         { NULL, md_pre_raw, md_post_raw, "`", "`" }, /* Li */          { NULL, md_pre_raw, md_post_raw, "`", "`" }, /* Li */
         { md_cond_head, md_pre_Nd, NULL, NULL, NULL }, /* Nd */          { md_cond_head, md_pre_Nd, NULL, NULL, NULL }, /* Nd */
         { NULL, md_pre_Nm, md_post_Nm, "**", "**" }, /* Nm */          { NULL, md_pre_Nm, md_post_Nm, "**", "**" }, /* Nm */
Line 1067  md_pre_In(struct roff_node *n)
Line 1067  md_pre_In(struct roff_node *n)
 {  {
         if (n->flags & NODE_SYNPRETTY) {          if (n->flags & NODE_SYNPRETTY) {
                 md_pre_syn(n);                  md_pre_syn(n);
                 md_pre_raw(n);                  md_rawword("**");
                 md_rawword("*");  
                 outflags &= ~MD_spc;                  outflags &= ~MD_spc;
                 md_word("#include <");                  md_word("#include <");
                 outflags &= ~MD_spc;  
         } else {          } else {
                 md_word("<");                  md_word("<");
                 outflags &= ~MD_spc;                  outflags &= ~MD_spc;
                 md_pre_raw(n);                  md_rawword("*");
         }          }
           outflags &= ~MD_spc;
         return 1;          return 1;
 }  }
   
Line 1085  md_post_In(struct roff_node *n)
Line 1084  md_post_In(struct roff_node *n)
 {  {
         if (n->flags & NODE_SYNPRETTY) {          if (n->flags & NODE_SYNPRETTY) {
                 outflags &= ~MD_spc;                  outflags &= ~MD_spc;
                 md_rawword(">*");                  md_rawword(">**");
                 md_post_raw(n);  
                 outflags |= MD_nl;                  outflags |= MD_nl;
         } else {          } else {
                 md_post_raw(n);  
                 outflags &= ~MD_spc;                  outflags &= ~MD_spc;
                 md_rawword(">");                  md_rawword("*>");
         }          }
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb