wallyqs / org-ruby

An Org mode parser written in Ruby.
218 stars 51 forks source link

Why is the ATTR_HTML option not supported ? #52

Open justinjk007 opened 6 years ago

justinjk007 commented 6 years ago

What i wanted was making images and so on resizable or alignable but that is not available in markdown either I believe ? It will be cool if org documents can have it thou !

Which is the right one thou ATTR_HTML or ATTR_ORG ?

kgrimes2 commented 6 years ago

Just noticed this too: neither ATTR_HTML nor ATTR_LATEX seemed to work to resize images.

justinjk007 commented 6 years ago

Lol, I was gonna learn some ruby to implement this , this summer, then completely forgot. I will look into getting this to work, this week. One thing I know is we need to use html if you want to resize images in markdown, as in it is not natively supported, I don't know if this exporter, exports org to somee special markup for github or html, if its html then this should not be that hard I suppose.

alphapapa commented 6 years ago

This seems related to #51, which might need to be solved first.

melioratus commented 4 years ago

org-ruby supports inline #+HTML: so you should be able to add the image attributes manually.

See workaround gist for issue #48 for syntax example.

zzkt commented 3 years ago

for example....

#+caption: Drone Organs - Francois Huber
#+ATTR_html: :width 600px
[[https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png]]

is rendered like so with org-ruby

<img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" /></p>

...and like so with org export from emacs

<div id="orgd56755f" class="figure">
<p><img src="https://upload.wikimedia.org/wikipedia/commons/a/a7/Drone_Organs_-_Francois_Huber.png" alt="Drone_Organs_-_Francois_Huber.png" width="600px" />
</p>
<p><span class="figure-number">Figure 3: </span>Drone Organs - Francois Huber</p>
</div>
muldoon2007 commented 3 years ago

More explicit example of the workaround mentioned above:

 #+HTML: <img src="path/to/image.png" width="500"/>