From 9424b8d7ba87ce6e6a26bb355910d600390dbd38 Mon Sep 17 00:00:00 2001 From: Brett Terpstra Date: Fri, 24 Nov 2023 15:20:06 -0600 Subject: [PATCH] Version bump --- CHANGELOG.md | 9 +++++++++ lib/mdless/console.rb | 3 ++- lib/mdless/version.rb | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) 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