Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for #+ATTR_HTML #72

Closed
ghost opened this issue Oct 28, 2017 · 1 comment
Closed

Support for #+ATTR_HTML #72

ghost opened this issue Oct 28, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 28, 2017

In org-mode, the #+ATTR_HTML syntax is used to specify attributes for the next block.

Example:

#+ATTR_HTML: :class goorgeous
I like Rust better.

gives

<p class="goorgeous">
I like Rust better.
</p>

You can have multiple lines, and multiples attributes per line, like so:

#+ATTR_HTML: :alt Go is fine though.
#+ATTR_HTML: :width 300 :style border:2px solid black;
[[file:https://golang.org/doc/gopher/pkg.png]]

This is probably easier to implement than #19 (although both would be useful).
Also, thank you! Support for org-mode made me switch to Hugo ;)

@curiouslychase
Copy link
Owner

I had a branch I was getting ready to PR into Hugo this week that fixed this, but it looks like @niklasfasching PR'ed a new org parser, so I'm closing all the issues here, deprecating and archiving goorgeous.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant