make/common/ProcessMarkdown.gmk
branchihse-manpages-branch
changeset 56951 79c99e08deb2
parent 56950 55725429863a
child 56972 e134eea44a09
equal deleted inserted replaced
56950:55725429863a 56951:79c99e08deb2
   103 
   103 
   104   ifeq ($$($1_FORMAT), man)
   104   ifeq ($$($1_FORMAT), man)
   105     # Pandoc's default behavior is to convert `code` to \f[C], which do not
   105     # Pandoc's default behavior is to convert `code` to \f[C], which do not
   106     # show up in normal man page rendering (but shows correctly when generating
   106     # show up in normal man page rendering (but shows correctly when generating
   107     # html). Normally, we could fix this by a pandoc filter, but  pandoc prior
   107     # html). Normally, we could fix this by a pandoc filter, but  pandoc prior
   108     # to version cannot properly produced nested formatting in man pages
   108     # to version 2.0 cannot properly produced nested formatting in man pages
   109     # (see https://github.com/jgm/pandoc/issues/3568).
   109     # (see https://github.com/jgm/pandoc/issues/3568).
   110     # As a workaround, use post-processing with sed.
   110     # As a workaround, use post-processing with sed.
   111     $1_POST_PROCESS := $(SED) -e 's/\\f\[C\]/\\f\[CB\]/g'
   111     $1_POST_PROCESS := $(SED) -e 's/\\f\[C\]/\\f\[CB\]/g'
   112 
   112 
   113     # FIXME: We also need a pandoc filter that removes link targets for internal
   113     # FIXME: We also need a pandoc filter that removes link targets for internal