3 ms·
I, for one, would be interested in seeing that nokogiri script that turns ugly HTML into markdown... although I'd totally understand if you want to keep it clos
by bjnord 14y ago
I, for one, would be interested in seeing that nokogiri script that turns ugly HTML into markdown... although I'd totally understand if you want to keep it close as a competitive advantage. ;-) I regularly have to deal with the ugly HTML that various apps' "Export" features disgorge.
- AlexMuir 14y agoIt's so hacky that it's almost certainly a competitive disadvantage. Converting to markdown is a bit of an overstatement - it only handles the limited content that I encountered in this book. - H1 heading -> ## - Strip P tags and add newlines - Replace 'See SHEET \d+' with [[Article:\d]]