pandoc_list_highlight_languages {pandoc}R Documentation

List supported languages for Pandoc syntax highlighting

Description

This function is useful to retrieve the supported languages by Pandoc's syntax highlighter. These are the values that can be used as fenced code attributes to trigger the highlighting of the block for the requested language. See fenced_code_attributes extensions flag.

Usage

pandoc_list_highlight_languages(version = "default")

Arguments

version

Version to use. Default will be the "default" version. Other possible value are

  • A version number e.g "2.14.1"

  • The nightly version called "nightly"

  • The latest installed version with "latest"

  • Pandoc binary shipped with RStudio IDE with "rstudio"

  • Pandoc binary found in PATH with "system"

Value

a character vector of supported languages to use as fenced code attributes.

Examples


pandoc_list_highlight_languages()


# check languages available in a specific Pandoc's version
pandoc_list_highlight_languages("2.11.4")


[Package pandoc version 0.2.0 Index]