Skip to content

Commit

Permalink
2.1.26
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Dec 5, 2023
1 parent 1bc957e commit 620219f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
2.1.26

2.1.25
: YAML loading issues caused by safe_load

Expand Down
10 changes: 6 additions & 4 deletions lib/mdless/console.rb
Original file line number Diff line number Diff line change
Expand Up @@ -780,10 +780,12 @@ def color_meta(text)

lines.map do |line|
line.sub!(/^(.*?:)[ \t]+(\S)/, '\1 \2')
parts = line.match(/[ \t]*(.*?): +(.*?)$/)
key = parts[1].gsub(/[^a-z0-9\-_]/i, '')
value = parts[2].strip
MDLess.meta[key] = value
parts = line.match(/^[ \t]*(\S.*?):[ \t]+(\S.*?)$/)
if parts
key = parts[1].gsub(/[^a-z0-9\-_]/i, '')
value = parts[2].strip
MDLess.meta[key] = value
end
line = "#{color('metadata marker')}%#{color('metadata color')}#{line}"
line += "\u00A0" * (longest - line.uncolor.strip.length) if (longest - line.uncolor.strip.length).positive?
line + xc
Expand Down
1 change: 1 addition & 0 deletions lib/mdless/converter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ def initialize(args)
opts.delete(:section)
opts.delete(:update_config)
opts.delete(:update_theme)
opts.delete(:width)
opts = opts.keys.map(&:to_s).sort.map { |k| [k.to_sym, opts[k.to_sym]] }.to_h
f.puts YAML.dump(opts)
warn "Config file saved to #{config}"
Expand Down
2 changes: 1 addition & 1 deletion lib/mdless/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CLIMarkdown
VERSION = '2.1.25'
VERSION = '2.1.26'
end
2 changes: 1 addition & 1 deletion test/lists.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
transclude base: /Users/ttscoff/Desktop
transclude base: test/transclude
title: Lists with transclude

{{Marked2.6.311054-releasenotes.md}}
Expand Down

0 comments on commit 620219f

Please sign in to comment.