diff --git a/CHANGELOG.md b/CHANGELOG.md index 2587872..2107064 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Change Log All notable changes to this project will be documented in this file. +## 1.3.0 - September 2019 +- Add support for `s` HTML tag, thanks @fauno + ## 1.2.0 - August 2019 - Handle windows `\r\n` within text blocks, thanks for reporting @krisdigital - Handle paragraphs in `li` tags, thanks @gstamp diff --git a/lib/reverse_markdown/converters/del.rb b/lib/reverse_markdown/converters/del.rb index 016a2d4..333d940 100644 --- a/lib/reverse_markdown/converters/del.rb +++ b/lib/reverse_markdown/converters/del.rb @@ -20,6 +20,7 @@ def disabled? end register :strike, Del.new + register :s, Del.new register :del, Del.new end end diff --git a/lib/reverse_markdown/version.rb b/lib/reverse_markdown/version.rb index b553741..437f60b 100644 --- a/lib/reverse_markdown/version.rb +++ b/lib/reverse_markdown/version.rb @@ -1,3 +1,3 @@ module ReverseMarkdown - VERSION = '1.2.0' + VERSION = '1.3.0' end diff --git a/spec/lib/reverse_markdown/converters/del_spec.rb b/spec/lib/reverse_markdown/converters/del_spec.rb index 0fef732..3421c35 100644 --- a/spec/lib/reverse_markdown/converters/del_spec.rb +++ b/spec/lib/reverse_markdown/converters/del_spec.rb @@ -11,6 +11,11 @@ expect(converter.convert(input)).to eq '~~deldeldel~~' end + it 'converts the input as expected' do + input = node_for('strike that') + expect(converter.convert(input)).to eq '~~strike that~~' + end + it 'skips empty tags' do input = node_for('') expect(converter.convert(input)).to eq ''