Commit Graph

19 Commits

Author SHA1 Message Date
Robert McGovern cc6e7e2436 Added support for tabWidth and highlightStyle
Also updated readme and removed some defaults from .eleventy.js. Simplified HighlightPairedShortcode to just mardownSyntaxHighlightOptions (should probably rename file). Finally updated package.json
2023-02-11 00:36:15 +00:00
Robert McGovern e3d9338708 Remove Node 14 from Github action
The chroma-highlight package I refer to only supports node >= 16.
2023-02-06 15:06:12 +00:00
Robert McGovern a37771eb00 Oops with GH Action 2023-02-06 15:00:48 +00:00
Robert McGovern 0393f832f4 Updated GH workflow to use demo
As I don't support testing yet, I've updated the github action to use "demo". Which will at least catch if I submit a build that won't build the files.
2023-02-06 14:49:26 +00:00
Robert McGovern ad0c998819 Added pre/code attribute support
Added pre/code attribute support. Simplified code so `markdownSyntaxHighlightOptions` is used for Liquid files. Updated readme, including information about performance. Added "bench" and "debug" to package.json
2023-02-06 14:45:32 +00:00
Robert McGovern 0f05a6abeb Added option for lexer overrides
As Chroma doesn't support liquid or njk as languages, I have added an lexerOverride option so you can specify a different lexer to use instead of the language specified.
2023-02-04 17:33:25 +00:00
Robert McGovern 33a7f79a95 added thanks to README, oops 2023-02-03 03:37:02 +00:00
Robert McGovern a3d356c512 add back deleted file, and removed log output 2023-02-03 03:00:45 +00:00
Robert McGovern c378d24751 missed little bit of code from example 2023-02-03 02:55:51 +00:00
Robert McGovern 5f3d7238d9 updated readme, added examples of output and code used to generate it 2023-02-03 02:54:28 +00:00
Robert McGovern 04f69115c9 remove files 2023-02-03 02:54:07 +00:00
Robert McGovern 53be570c16 Added .liquid file/tags support 2023-02-03 02:32:52 +00:00
Robert McGovern 91e57182f3 added everyone to the LICENSE 2023-02-03 02:07:43 +00:00
Robert McGovern 68e3e1bae4 added handling highlighting lines, from single lines, to ranges, to line + range. Could probably do multiple ranges if I edit the regex 2023-02-03 01:51:06 +00:00
Robert McGovern 78de23e617 edited package.json to remove / change details 2023-02-03 00:05:13 +00:00
Robert McGovern ecfb138018 added noted its a WIP 2023-02-02 23:50:23 +00:00
Robert McGovern 4cd4790464 edit to readme 2023-02-02 23:49:35 +00:00
Robert McGovern 4bb213e148 work in progress. basic arguments handled in njk and md, need to do liquid and handling lineNumbersStart, highlight lines 2023-02-02 23:46:44 +00:00
Robert McGovern c40be6836a base files from eleventy-plugin-syntaxhighlight-4.2.0 and chromahighlight npm package as dependency 2023-02-02 14:36:15 +00:00