emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Why are some headings html exported as lists while others aren’t?
@ 2020-12-09  6:04 George Mauer
  2020-12-09  6:10 ` Kyle Meyer
  2020-12-09  6:28 ` Eric S Fraga
  0 siblings, 2 replies; 3+ messages in thread
From: George Mauer @ 2020-12-09  6:04 UTC (permalink / raw)
  To: emacs-orgmode

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

I am practicing with org->html conversion by trying to export an html
resume.

I have the following

* Resume
** About
   :PROPERTIES:
   :HTML_CONTAINER: header
   :END:
*** George Mauer
    :PROPERTIES:
    :HTML_CONTAINER: h1
    :END:
*** Contact
    :PROPERTIES:
    :HTML_CONTAINER: article
    :HTML_CONTAINER_CLASS: contact
    :END:
**** Location
     :PROPERTIES:
     :HTML_CONTAINER: aside
     :HTML_CONTAINER_CLASS: city-state
     :END:
     New Orleans, LA
**** Email
     :PROPERTIES:
     :HTML_CONTAINER_CLASS: email
     :END:
     [[mailto:gmauer@gmail.com][gmauer@gmail.com]]
**** Blog
     :PROPERTIES:
     :HTML_CONTAINER_CLASS: blog
     :END:
     [[http://georgemauer.net][georgemauer.net]]
**** LinkedIn
     :PROPERTIES:
     :HTML_CONTAINER_CLASS: linkedin
     :END:
     [[https://www.linkedin.com/in/george-mauer/][LinkedIn]]
**** StackOverflow
     :PROPERTIES:
     :HTML_CONTAINER_CLASS: stackoverflow
     :END:
     [[https://stackoverflow.com/users/5056/george-mauer][StackOverflow]]
**** GitHub
     :PROPERTIES:
     :HTML_CONTAINER_CLASS: github
     :END:
     [[https://github.com/togakangaroo/][GitHub]]


And the following .dir-locals.el

((org-mode . ((org-export-with-section-numbers . nil)
              (org-html-html5-fancy . 't)
              (org-export-with-toc . nil)
              (org-html-postamble . nil))))


When I export this to html the HTML_CONTAINER and HTML_CONTAINER_CLASS
properties are working for the Contact and my name and About headers, but
all the headers underneath Contact appear as `ul` with no classes.

It would seem that there's some sort of "level" beyond which heading are
not customizable.

Is that how it works? I'm not finding a variable I can override if it is.

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

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

* Re: Why are some headings html exported as lists while others aren’t?
  2020-12-09  6:04 Why are some headings html exported as lists while others aren’t? George Mauer
@ 2020-12-09  6:10 ` Kyle Meyer
  2020-12-09  6:28 ` Eric S Fraga
  1 sibling, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2020-12-09  6:10 UTC (permalink / raw)
  To: gmauer; +Cc: emacs-orgmode

George Mauer writes:

[...]
>
> When I export this to html the HTML_CONTAINER and HTML_CONTAINER_CLASS
> properties are working for the Contact and my name and About headers, but
> all the headers underneath Contact appear as `ul` with no classes.
>
> It would seem that there's some sort of "level" beyond which heading are
> not customizable.
>
> Is that how it works? I'm not finding a variable I can override if it is.

Perhaps you're looking for org-export-headline-levels or the "H:<n>"
option.


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

* Re: Why are some headings html exported as lists while others aren’t?
  2020-12-09  6:04 Why are some headings html exported as lists while others aren’t? George Mauer
  2020-12-09  6:10 ` Kyle Meyer
@ 2020-12-09  6:28 ` Eric S Fraga
  1 sibling, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2020-12-09  6:28 UTC (permalink / raw)
  To: George Mauer; +Cc: emacs-orgmode

On Wednesday,  9 Dec 2020 at 00:04, George Mauer wrote:
> It would seem that there's some sort of "level" beyond which heading are
> not customizable.

Check out the H:n option, e.g. H:4.
Described in info manual at (org) Export Settings

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-160-g7c8dce


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

end of thread, other threads:[~2020-12-09  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-09  6:04 Why are some headings html exported as lists while others aren’t? George Mauer
2020-12-09  6:10 ` Kyle Meyer
2020-12-09  6:28 ` Eric S Fraga

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).