emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* feature request: easier style attributes
@ 2015-10-24  1:16 Matt Price
  2015-10-24 11:51 ` Rasmus
  0 siblings, 1 reply; 3+ messages in thread
From: Matt Price @ 2015-10-24  1:16 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 508 bytes --]

OK, one more, again a repeat of an old request.

Pandoc Markdown has this incredibly easy way to specify html attributes (
http://pandoc.org/README.html#header-identifiers):

----
# My Header {#myid .class1 .class2}
----

I find this much easier to read, write, and maintain than the org-mode
equivalent:

#+ATTR_HTML: :id myid :class class1 class2
* My Header

I would love to have something like the pandoc syntax available within
org.  What do other people think, and how hard would this be to implement?

[-- Attachment #2: Type: text/html, Size: 792 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: feature request: easier style attributes
  2015-10-24  1:16 feature request: easier style attributes Matt Price
@ 2015-10-24 11:51 ` Rasmus
       [not found]   ` <CAN_Dec915n553+j6zr1cGML4siF_xm+DkLi5khk7n9bmQ_16XA@mail.gmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2015-10-24 11:51 UTC (permalink / raw)
  To: emacs-orgmode

Matt Price <moptop99@gmail.com> writes:

> OK, one more, again a repeat of an old request.
>
> Pandoc Markdown has this incredibly easy way to specify html attributes (
> http://pandoc.org/README.html#header-identifiers):
>
> ----
> # My Header {#myid .class1 .class2}
> ----
>
> I find this much easier to read, write, and maintain than the org-mode
> equivalent:
>
> #+ATTR_HTML: :id myid :class class1 class2
> * My Header

Does this do what you want?

* my header
:PROPERTIES:
:CUSTOM_ID: myid
:HTML_CONTAINER_CLASS: class1 class2
:END:


-- 
The second rule of Fight Club is: You do not talk about Fight Club

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: feature request: easier style attributes
       [not found]     ` <87lhaszbx8.fsf@gmx.us>
@ 2015-10-24 13:01       ` Matt Price
  0 siblings, 0 replies; 3+ messages in thread
From: Matt Price @ 2015-10-24 13:01 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]

On Sat, Oct 24, 2015 at 8:30 AM, Rasmus <rasmus@gmx.us> wrote:

> Matt Price <moptop99@gmail.com> writes:
>
> > On Sat, Oct 24, 2015 at 7:51 AM, Rasmus <rasmus@gmx.us> wrote:
> >
> >> Matt Price <moptop99@gmail.com> writes:
> >>
> >> > OK, one more, again a repeat of an old request.
> >> >
> >> > Pandoc Markdown has this incredibly easy way to specify html
> attributes (
> >> > http://pandoc.org/README.html#header-identifiers):
> >> >
> >> > ----
> >> > # My Header {#myid .class1 .class2}
> >> > ----
> >> >
> >> > I find this much easier to read, write, and maintain than the org-mode
> >> > equivalent:
> >> >
> >> > #+ATTR_HTML: :id myid :class class1 class2
> >> > * My Header
> >>
> >> Does this do what you want?
> >>
> >> * my header
> >> :PROPERTIES:
> >> :CUSTOM_ID: myid
> >> :HTML_CONTAINER_CLASS: class1 class2
> >> :END:
> >>
> > I guess so. It still seems much "heavier" to me than the pandoc syntax,
> > which I find much easier to read and write,
>
> It's also more explicit.  And if you use Emacs for authoring your .org
> documents, you can use the C-c C-x p interface for fast insertion.
>

Yes, that's true and I see the advantages, I just still prefer a shorthand;
it's easier to look at and for me at least, less distracting to write.

>
> You didn't write to the list.
>

thx.

>
> --
> The second rule of Fight Club is: You do not talk about Fight Club
>

[-- Attachment #2: Type: text/html, Size: 2610 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-24 13:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-24  1:16 feature request: easier style attributes Matt Price
2015-10-24 11:51 ` Rasmus
     [not found]   ` <CAN_Dec915n553+j6zr1cGML4siF_xm+DkLi5khk7n9bmQ_16XA@mail.gmail.com>
     [not found]     ` <87lhaszbx8.fsf@gmx.us>
2015-10-24 13:01       ` Matt Price

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).