Class: JayRemoveMarkupElements
- Inherits:
-
HTML::Pipeline::TextFilter
- Object
- HTML::Pipeline::TextFilter
- JayRemoveMarkupElements
- Defined in:
- lib/jay_flavored_markdown/markdown_converter.rb
Overview
Remove markup elements(*, +, -, #, [])
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
756 757 758 759 760 761 762 763 764 |
# File 'lib/jay_flavored_markdown/markdown_converter.rb', line 756 def call @text = @text.split("\n").map do |line| line = remove_emphasis(line) line = remove_header(line) line = remove_link(line) line = remove_list(line) line = remove_strikethrough(line) end.join("\n") end |