Skip to content
Snippets Groups Projects
  1. Sep 27, 2022
    • Peter Mosses's avatar
      Improve docs for code highlighting with line numbers (#974) · 93857587
      Peter Mosses authored
      * Add toc heading custom include
      
      Closes #961.
      
      * Revert "Add toc heading custom include"
      
      This reverts commit 49813c341973e313db0a21f075a60ebf2120989e.
      
      * Update code highlighting with line numbers
      
      - Add the example of code highlighting with line numbers explained in the [Jekyll docs](https://jekyllrb.com/docs/liquid/tags/#line-numbers).
      - Fix the styling of narrow code with line numbers, which floats to the centre without this CSS adjustment. (The line numbers column expands as needed with larger numbers of lines, despite using `width`; using `min-width` doesn't work.)
      
      To apply HTML compression, I removed `vendor` from `exclude`; that change is left to a different PR.
      Unverified
      93857587
  2. Jun 18, 2021
  3. Sep 14, 2020
  4. Sep 11, 2020
  5. Aug 10, 2020
  6. Jul 07, 2020
    • PLanCompS's avatar
      Optimisations · 8a9a8a34
      PLanCompS authored
      Optimised CSS selectors.
      Changed markup in `linenos-test` to inhibit line numbers appearing in YAML examples when testing code fences.
      8a9a8a34
    • PLanCompS's avatar
      Major refactoring · 61053f67
      PLanCompS authored
      The additions to `_config.yml` go together with the changes to `code.scss`,
      to facilitate adjusttments by users. See `docs/linenos-test` for the details.
      The CSS code has been significantly refactored and simplified,
      and seems to produce sensible results (at least on Safari and Firefox).
      61053f67
  7. Jul 06, 2020
Loading