Add provided classes to wrapper div
Open
- Dominant language
- Haskell
- Stars
- 218
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
With a source like this:
````
``` {.python .numberLines}
if is_true:
pass
```
````
pandoc generates
```
```
I'd like the enclosing `
` to include the classes I've specified in the source (or at least `python`.) I'm thinking of changing the style of different code blocks based on which language they are.
I've traced the issue to skylighting, in the [`formatHtmlBlock` function](https://hackage.haskell.org/package/skylighting-core-0.7.7/docs/src/Skylighting.Format.HTML.html#formatHtmlBlock). I think all that's needed is a change in the first line:
```
H.div ! A.class_ (toValue "sourceCode") $
```
to
```
H.div ! A.class_ (toValue $ Text.unwords classes) $
```
I'm writing this as an issue to see if there'd be interest in a pull request for this change.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.