Display imges like org-mode #32
Replies: 2 comments 2 replies
-
It's surely possible. It's not necessarily something adoc-mode needs to handle though. I'm using the excellent math-preview mode to get equations to show inline, and images are probably a bit easier. Mostly all that was required for that package was defining regex to match the block format used for inline stem and latexmath blocks (and a bug report to allow regex matching for that latter, but that's done). It would be ideal for a separate package to handle images, it can work for any markup not just asciidoc. |
Beta Was this translation helpful? Give feedback.
-
I did a little bit more digging. There's already such a mode in emacs, called iimage. I got it to work by defining a regex for image:: blocks and adding an image search path. It's pretty basic though, either display all images or not, and no control over positioning. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to implement image display/preview like in Org-mode? For example, whenever we have some markup like this:
Then it would somehow hide the text and in place of that display the image itself?
It seems Emacs has the ability to hide characters and display some other thing instead. Org-mode does this for markers with
org-hide-emphasis-markers
, and also does something nice with links, etc.So, Emacs should be able to support this. My question relates more to adoc-mode. Would it be feasible to implement this idea in this package? Would it be useful/interesting?
Beta Was this translation helpful? Give feedback.
All reactions