atom-asciidoc-preview
atom-asciidoc-preview copied to clipboard
Add option to "render selection"
The Chrome extension has the option to render the current selection. I think this would be a great feature to have in an editing environment as well.
...once we add "render selection" we could move on to "render section". There's a new API coming in 1.5.0 that will give you access to the source code for any node in the parse tree.
There seems to be some related code in the Markdown Preview plugin:
https://github.com/atom/markdown-preview/blob/master/lib/main.coffee#L65
That code copies the converted output to the clipboard. What we would want is to render it into the preview pane (or a secondary preview pane).
Related discussion in the brackets extension:
https://github.com/asciidoctor/brackets-asciidoc-preview/issues/5
Have you a link to the documentation for :
There's a new API coming in 1.5.0 that will give you access to the source code for any node in the parse tree.
Thank you ;)
@anthonny Not yet. It's currently still in my head. It's being tracked in https://github.com/asciidoctor/asciidoctor/issues/861.