Commit Graph

5 Commits

Author SHA1 Message Date
Martin Taillefer 9bd12eebd4
Fix a couple issues around code blocks. (#1440)
- Include JSON syntax coloring support in PrismJS. This prevents
JavaScript crashes when trying to format output that's marked as JSON.
This was happening on the tasks/traffic-management/mirroring.md page.

- Properly escape strings raw output strings before inserting them into the
document. This bug was causing strange things to happen if any of the content
contained stuff that looked like HTML, such as the word <none>.
2018-06-04 13:01:09 -07:00
mtail 33d2d38e77 Don't attach links to <h1> headers. 2018-06-03 05:39:26 -07:00
Martin Taillefer efce7c3a4e Workaround bug in Firefox causing bad formatting in some code blocks. (#1379)
- Fixed syntax highlighting of code blocks with multiple commands.
Each command is now run through the syntax highlighter separately, instead
of mushing all commands into one go. The leading $ is also excluded which
helps the highlighter.

- Fixed the CSS source maps which couldn't be found due to a path problem. Running with Firefox
alerted me to that.

- Add missing JS source maps while I was there.
2018-05-29 22:21:28 -07:00
Martin Taillefer b7d8a08998
Workaround Hugo formatting bug with indented code blocks that have lines that start with - (#1372) 2018-05-28 09:14:31 -07:00
mtail 951a8ed9f4 Switch from Jekyll to Hugo. 2018-05-25 20:02:32 -07:00