diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dec432..99ac863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +2.0.15 +: Highlight [[wiki links]] +: TaskPaper rendering refinements +: Handle TaskPaper tasks without project if --taskpaper is enabled +: Wiki link highlighting is optional with `--[no-]wiki-links` and can be set in config +: Nil error on short files +: Project regex matching `- PROJECT NAME:` +: If taskpaper is true, avoid all parsing other than tasks, projects, notes, and tags + 2.0.8 : Image rendering with chafa improved, still have to figure out a way to make sure content breaks around the embedded image : Only detect mmd headers on first line diff --git a/lib/mdless/console.rb b/lib/mdless/console.rb index 7102c56..b96a396 100644 --- a/lib/mdless/console.rb +++ b/lib/mdless/console.rb @@ -613,13 +613,14 @@ def preprocess(input) end end + input = color_meta(input) + if @options[:taskpaper] input = CLIMarkdown::TaskPaper.highlight(input, @theme) input = highlight_tags(input) return input end - input = color_meta(input) ## Replace setex headers with ATX input.gsub!(/^([^\n]+)\n={2,}\s*$/m, "# \\1\n") diff --git a/lib/mdless/version.rb b/lib/mdless/version.rb index b21e6bd..d72b64d 100644 --- a/lib/mdless/version.rb +++ b/lib/mdless/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module CLIMarkdown - VERSION = '2.0.14' + VERSION = '2.0.15' end