Re: Is there any tool that convert html to asciidoctor?
Posted by
mojavelinux on
Oct 29, 2018; 9:51pm
URL: https://discuss.asciidoctor.org/Is-there-any-tool-that-convert-html-to-asciidoctor-tp6563p6570.html
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
--