Skip to content

Commit

Permalink
Add s tag for strikethrough
Browse files Browse the repository at this point in the history
Thanks @fauno in xijo#76
  • Loading branch information
xijo committed Sep 9, 2019
1 parent 1b4b81c commit d18fd18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/reverse_markdown/converters/del.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def disabled?
end

register :strike, Del.new
register :s, Del.new
register :del, Del.new
end
end
2 changes: 1 addition & 1 deletion lib/reverse_markdown/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ReverseMarkdown
VERSION = '1.2.0'
VERSION = '1.3.0'
end
5 changes: 5 additions & 0 deletions spec/lib/reverse_markdown/converters/del_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@
expect(converter.convert(input)).to eq '~~deldeldel~~'
end

it 'converts the input as expected' do
input = node_for('<s>strike that</s>')
expect(converter.convert(input)).to eq '~~strike that~~'
end

it 'skips empty tags' do
input = node_for('<del></del>')
expect(converter.convert(input)).to eq ''
Expand Down

0 comments on commit d18fd18

Please sign in to comment.