Is there any tool that convert html to asciidoctor?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Is there any tool that convert html to asciidoctor?

documentationchronicles
Hello. I am looking for a tool to convert HTML into asciidoctor markup. I am able to render(convert asciidoctor to html) but I don't know how to convert HTML markup to asciidoctor markup.Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Is there any tool that convert html to asciidoctor?

rwinch
Pandoc should work. You can also try it online.
Reply | Threaded
Open this post in threaded view
|

Re: Is there any tool that convert html to asciidoctor?

mojavelinux
Administrator
Asciidoc FX also supports converting to from HTML to AsciiDoc on paste.

Keep in mind that converting from HTML to AsciiDoc is always tricky since HTML is essentially a schemaless language. A tool can probably take care of the very broad strokes such as demarcating section headings and paragraphs, but to get any sort of decent result is probably going to require some custom mapping or scripting.

The best advice I can give you is to not store documents in HTML because it cannot properly preserve the integrity of the document (unless you were to agree on a very strict schema).

Cheers,

-Dan

On Mon, Oct 29, 2018 at 9:02 AM rwinch [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Pandoc should work. You can also try it online.


If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Is-there-any-tool-that-convert-html-to-asciidoctor-tp6563p6564.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen | @mojavelinux | https://twitter.com/mojavelinux