7.11 Parser

  • Remark default parser (default in xaringan):

    • Very lightweight, fast ✅

    • Recognizes special syntaxes like .class[ text ]-- for incremental reveals, ??? for presenter notes

    • But doesn’t support fenced divs ::: or Pandoc extensions like footnotes, definition lists, etc.

  • Pandoc parser (when you set markdown: pandoc in yaml):

    • Full Pandoc Markdown support → you can use fenced divs, footnotes, definition lists, tables with alignment, math extensions, etc.

    • However, some remark-specific syntaxes may stop working or behave differently, especially:

      • .class[ text ] sometimes doesn’t parse as expected

      • Indentation rules for lists and code can be stricter

      • Incremental slides (--) still work, but spacing quirks can appear

      • Raw HTML might be handled slightly differently