LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2017, 01:04 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Rep: Reputation: 213Reputation: 213Reputation: 213
HTML to Markdown Converter?


Hello,

Would you eventually know a possible HTML -> Markdown converter?

There is here in java a way: https://github.com/pnikosis/jHTML2Md

In C or C++, would be ideal and portable to almost every systems.

But more would be welcome.
Thank you
 
Old 04-17-2017, 01:48 AM   #2
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,075

Rep: Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725Reputation: 725
Pandoc at http://pandoc.org works really well. It's Haskell, though, not C or C++.
 
Old 04-17-2017, 02:54 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,357

Original Poster
Rep: Reputation: 213Reputation: 213Reputation: 213
Quote:
Originally Posted by notKlaatu View Post
Pandoc at http://pandoc.org works really well. It's Haskell, though, not C or C++.
The magic formula is the following:
Code:
pandoc --from html --to markdown doc.html -o doc.md
It works pretty well, except for encoding. ńąćęęłłńśźżż
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Improved Markdown with colors (for html, pdf, rtf, tex) Xeratul General 0 02-05-2017 10:17 AM
lattex/html converter abd_bela Debian 2 12-26-2008 09:43 AM
PPT to HTML Converter? for Linux Command Line caged Linux - Software 1 05-11-2007 12:06 PM
email to html converter psychobyte Linux - Software 1 03-24-2005 02:22 PM
Looking for a Recursive HTML Converter for Linux larley Linux - Software 1 06-13-2004 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration