reverse_markdown
reverse_markdown copied to clipboard
Ruby gem to convert html into markdown
`abc ` => `_abc _`, which is invalid according to redcarpet.
```ruby ReverseMarkdown.convert('abc 123xyz hi') ``` => ```ruby "**abc 123 \n \nxyz hi** \n " ``` Expected is ```ruby "**abc** **123**\n\n**xyz** hi" ```
As per https://opensource.org/minutes20090304 this was rejected as redundant with Fair license https://opensource.org/licenses/Fair Would you consider using Fair license or CC0 or X11 or Apache 2.0 instead? https://www.gnu.org/licenses/license-list.html#WTFPL FSF recommends using...
The library is adding what I believe to be unintended newline characters, when parsing a document with `li > p` structure with newlines in between the 2 nodes: ```rb [6]...
Coming from https://github.com/forem/forem/issues/8457, I think that ReverseMarkdown strips too much blankspace in some scenarios. Here's a failing test: ```ruby it 'keeps whitespace surrounding links' do result = ReverseMarkdown.convert("a\nlink\nis good\nbut blankspace...
I have some tables that are coded in HTML without like this... ```html header 1 header 2 item 3 item 4 ``` ```markdown | header 1 | header 2 |...
**Ruby 2.3.0** **Rails 4.2.5** Rails Console output: ``` 2.3.0 :005 > html_str = "Username : %{user_name}" => "Username : %{user_name}" 2.3.0 :006 > md = ReverseMarkdown.convert(html_str) => " **Username** :...
I've been using Reverse Markdown and it works great most of the time. I've run into one issue that I thought I'd get your opinion on. Sometimes the HTML documents...
## Input ```html I ran into a weird situation today. Active Record objects stored in vars are removed when I switched from one tenant to another on the fly. This...
Hyphen(-) in markdown should be show as a list, i think we should escape hyphen(-) to "-", otherwise after converted, hyphen(-) will be show as a list, but i expected...