Closed tkphd closed 2 years ago
The reason why this approach is not working is two-fold:
::before
CSS pseudo-element, meaning that they are entirely visual decoration since pseudo-elements are computed after the HTML document is loaded. haaaaaaa... OK then.
Code blocks currently show the language as the block title. In many places, the code block represents the contents of a file, and having that filename printed in the title-block would be great.
Kramdown provides the
title
attribute, e.g.,which ought to render the block with "script.py" as the title, and with Python syntax highlighting. However, my efforts to invoke this functionality have been unsuccessful. Am I just doing it wrong, or is this something The Carpentries' remote Jekyll theme can address using CSS?