atom-asciidoc-preview icon indicating copy to clipboard operation
atom-asciidoc-preview copied to clipboard

Add option to "render selection"

Open mojavelinux opened this issue 10 years ago • 4 comments

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.

mojavelinux avatar May 16 '14 23:05 mojavelinux

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).

mojavelinux avatar May 18 '14 01:05 mojavelinux

Related discussion in the brackets extension:

https://github.com/asciidoctor/brackets-asciidoc-preview/issues/5

mojavelinux avatar May 28 '14 00:05 mojavelinux

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 avatar Jun 04 '14 07:06 anthonny

@anthonny Not yet. It's currently still in my head. It's being tracked in https://github.com/asciidoctor/asciidoctor/issues/861.

mojavelinux avatar Jun 19 '14 07:06 mojavelinux