getnikola / plugins

Extra plugins for Nikola
https://plugins.getnikola.com/
MIT License
56 stars 92 forks source link

[orgmode] #393

Closed shilet closed 1 year ago

shilet commented 3 years ago

The code to export images does not include html attrs. For instance,

+ATTR_HTML: :width 100px;

[[/images/picture.png]]

expands to

nil

If I remove the part of the init.el of the orgmode plugin that deals with the images I get this:

jorden_tata.png

Specifically, to get this, I commented out in init.el: ; (org-add-link-type "file" nil 'org-file-link-img-url-export)

laodzu commented 1 year ago

So I just checked this on my local installation with Nikola v8.2.3 and orgmode plugin at version 0.3.

Here is the source:

#+ATTR_HTML: :title Big lock :align middle :width 150
[[../../images/nikola-50px-grey.png]]

and this is in the output:

<div id="orgc443038" class="figure">
<p><img src="../../images/nikola-50px-grey.png" alt="nikola-50px-grey.png" title="Big lock" align="middle" width="150"></p>
</div>

So the title, align and width attributes were passed correctly to html.

So I think this issue can be closed, or what do you think?