Passing Pygments options with fenced code blocks #2876

Open
sjl opened this Issue Jan 2, 2017 · 0 comments

Projects

None yet

2 participants

@sjl
sjl commented Jan 2, 2017

I know I can pass options to Pygments when using Hugo's highlight tags:

{{< highlight lisp "linenos=inline" >}}
(defun foo ...)
{{< / highlight >}}

I prefer using fenced code blocks because they're much easier to read and my editor supports them. Hugo supports those, but I can't seem to find a way to pass Pygments options along when using them. Perhaps something like Python-Markdown's syntax could be used:

```lisp linenos=inline
(defun foo ...)
```
@bep bep added the Wish label Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment