Skip to content

markdown code blocks add shell commands #10184

Answered by bpj
marek-step asked this question in Q&A
Discussion options

You must be logged in to vote

Not all highlighting schemes (or hoghlight-styles as Pandoc calls them) color all token types. You may want to use another highlighting style. Read the manual first.

If none of the builtin highlight styles is to your liking your best choice is to define youur own highlighting style. Print out the builtin one you want to modify with

pandoc --print-highlight-style=STYLE > mystyle.json 

where STYLE is “pygments” or whatever you choose from the builtin ones.

When you open the JSON file you will see something like this

{
    "text-color": null,
    "background-color": null,
    "line-number-color": "#aaaaaa",
    "line-number-background-color": null,
    "text-styles": {
        "Alert": {
   …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@tarleb
Comment options

@marek-step
Comment options

@bpj
Comment options

@bpj
Comment options

@marek-step
Comment options

Answer selected by marek-step
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants