asciidoctor-browser-extension
asciidoctor-browser-extension copied to clipboard
Is there a plan to add the export to html feature?
Is there a plan to add the export to html feature?
That would be interesting. Currently, when you use "Save As..." it just saves the raw AsciiDoc source.
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.