Re: [O] [patch][ox-html] Support for level based containers

2014-03-19 Thread Rick Frankel
On 2014-03-18 15:41, Rasmus wrote: Rick Frankel r...@rickster.com writes: On 2014-03-17 23:31, Rasmus wrote: A general rule is that the section element is appropriate only if the element's contents would be listed explicitly in the document's outline. So, using this definition, in html5,

Re: [O] [patch][ox-html] Support for level based containers

2014-03-18 Thread Rick Frankel
On 2014-03-17 23:31, Rasmus wrote: It's a variable that you can set in your project or in your Org file or in your init file. I don't see why div × 3 is better than section article div or something else conditional on two variables being explicitly set to get fancy HTML5. . . In any case, I

Re: [O] [patch][ox-html] Support for level based containers

2014-03-18 Thread Rasmus
Rick, Rick Frankel r...@rickster.com writes: On 2014-03-17 23:31, Rasmus wrote: It's a variable that you can set in your project or in your Org file or in your init file. I don't see why div × 3 is better than section article div or something else conditional on two variables being

Re: [O] [patch][ox-html] Support for level based containers

2014-03-17 Thread Rick Frankel
On Mon, Mar 17, 2014 at 03:15:50AM +0100, Bastien wrote: Hi Rasmus and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Let me know if you find you'd be willing to merge something like this I don't know enough HTML to have an opinion here. I don't think it's a bad change, but i

Re: [O] [patch][ox-html] Support for level based containers

2014-03-17 Thread Rasmus
Rick Frankel r...@rickster.com writes: On Mon, Mar 17, 2014 at 03:15:50AM +0100, Bastien wrote: Hi Rasmus and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Let me know if you find you'd be willing to merge something like this I don't know enough HTML to have an opinion here.

Re: [O] [patch][ox-html] Support for level based containers

2014-03-17 Thread Rick Frankel
On Mon, Mar 17, 2014 at 11:26:28PM +0100, Rasmus wrote: Rick Frankel r...@rickster.com writes: On Mon, Mar 17, 2014 at 03:15:50AM +0100, Bastien wrote: Hi Rasmus and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Let me know if you find you'd be willing to merge something

Re: [O] [patch][ox-html] Support for level based containers

2014-03-17 Thread Rasmus
Rick Frankel r...@rickster.com writes: On Mon, Mar 17, 2014 at 11:26:28PM +0100, Rasmus wrote: Rick Frankel r...@rickster.com writes: On Mon, Mar 17, 2014 at 03:15:50AM +0100, Bastien wrote: Hi Rasmus and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Let me know if you

Re: [O] [patch][ox-html] Support for level based containers

2014-03-16 Thread Nicolas Goaziou
Hello, Rasmus ras...@gmx.us writes: This patch allows different containers in ox-html.el depending on the level of the heading. For example, it is possible to get a container structure like this (level . container): * . section ** . article *** . div This is good for HTML5 at least,

Re: [O] [patch][ox-html] Support for level based containers

2014-03-16 Thread Rasmus
Hi, Thanks for the—as always—useful comments. I have attached a new version of the patch with better doc and a bit better functionality, I think. Nicolas Goaziou n.goaz...@gmail.com writes: I don't know enough HTML to have an opinion here. Then we are two. . . and what changes are

Re: [O] [patch][ox-html] Support for level based containers

2014-03-16 Thread Bastien
Hi Rasmus and Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Let me know if you find you'd be willing to merge something like this I don't know enough HTML to have an opinion here. Well, Rick is our HTML expert, let's ping him for such decisions. -- Bastien

[O] [patch][ox-html] Support for level based containers

2014-03-15 Thread Rasmus
Hi, This patch allows different containers in ox-html.el depending on the level of the heading. For example, it is possible to get a container structure like this (level . container): * . section ** . article *** . div This is good for HTML5 at least, and I suspect also for ox-publish