matthias krull
matthias krull

Reputation: 4429

How to convert HTML back to markdown?

I am looking for a way to convert Markdown to HTML and back, more out of interest than real need. I am aware of the loss of information on such a conversion.

I hope for an html2text.pl like conversion. If there is no such utility in Perl I would try to take this script as a base for a CPAN module.

Upvotes: 2

Views: 1447

Answers (2)

ikegami
ikegami

Reputation: 385590

HTML::WikiConverter::Markdown seems up to the task.

Upvotes: 2

kirelagin
kirelagin

Reputation: 13616

There you go: Pandoc can convert almost anything to anything. Sorry, no perl though.

Upvotes: 4

Related Questions