asciidoctor / asciidoctor-browser-extension

:white_circle: An extension for web browsers that converts AsciiDoc files to HTML using Asciidoctor.js.
https://chrome.google.com/webstore/detail/asciidoctorjs-live-previe/iaalpfgpbocpdfblpnhhgllgbdbchmia
MIT License
216 stars 53 forks source link

Is there a plan to add the export to html feature? #148

Open ioalloc opened 7 years ago

ioalloc commented 7 years ago

Is there a plan to add the export to html feature?

mojavelinux commented 7 years ago

That would be interesting. Currently, when you use "Save As..." it just saves the raw AsciiDoc source.

ggrossetie commented 3 years ago

I think we could use the downloads API: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/downloads/download

We will need to add downloads in the permission: https://github.com/asciidoctor/asciidoctor-browser-extension/blob/57f9457f6f0e1db716fa87a80f1c3b26a760e1da/app/manifest.json#L291-L311 Since this API is not available in Safari and Firefox Mobile, we should probably check if downloads.download() is available before calling it.