Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Neville Park
@nev@status.nevillepark.ca  ·  activity timestamp 2 days ago

A really cool thing I just learned: since version 3.4, Pandoc lets you output markup with ANSI escape codes so you can see formatted text in the terminal!

However, the default formatting (e. g. inline code as red on light grey) kind of makes my eyes bleed?

Here's the commit. Any Pandoc mavens know how to customize the colours? Like do I edit a copy of ANSI.hs and put it…somewhere? Do I make a custom Lua filter? Halp ;_;

#CommandLine #cli #pandoc

GitHub

Release pandoc 3.4 · jgm/pandoc

Click to expand changelog New output format: ansi (for formatted console output) (Evan Silberman). Most Pandoc elements are supported and printed in a reasonable way, if not always ideally. This ...
Gnome-terminal screenshot. pandoc takes sample Markdown-formatted text (including a heading, inline code, code block, and an URL) and prints it to stdout so the heading is in bold and all caps, code is in a different colour, links are in a different colour and underlined, etc.
Gnome-terminal screenshot. pandoc takes sample Markdown-formatted text (including a heading, inline code, code block, and an URL) and prints it to stdout so the heading is in bold and all caps, code is in a different colour, links are in a different colour and underlined, etc.
Gnome-terminal screenshot. pandoc takes sample Markdown-formatted text (including a heading, inline code, code block, and an URL) and prints it to stdout so the heading is in bold and all caps, code is in a different colour, links are in a different colour and underlined, etc.
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.2.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login