You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Stephen Connolly <st...@gmail.com> on 2013/11/13 10:13:55 UTC

Anyone know why Doxia treats H1 as an "unknown" event and H2 as "section_level_1"?

http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java?view=markup#l413

Seems strange to me... but perhaps there is a good reason...

Re: Anyone know why Doxia treats H1 as an "unknown" event and H2 as "section_level_1"?

Posted by Stephen Connolly <st...@gmail.com>.
No I think that it is that Doxia is kind of expecting that you only have
one H1 in your document and that is for the title... of course it doesn't
actually use it for the title

The H1 gets generated by the output sinks... but it just does not get the
hyperlinking targets set...


On 13 November 2013 09:54, Barrie Treloar <ba...@gmail.com> wrote:

> On 13 November 2013 19:56, Lukas Theussl <lt...@gmail.com> wrote:
> >
> > Hi Stephen,
> >
> > The Sink API only knows 5 section levels, which in html are mapped to
> <h2> -
> > <h6>: http://jira.codehaus.org/browse/DOXIA-203
>
> Probably from a typography point of view H1 is junk
> (http://practicaltypography.com/point-size.html) and everyone just
> jumps to H2 instead.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
>

Re: Anyone know why Doxia treats H1 as an "unknown" event and H2 as "section_level_1"?

Posted by Barrie Treloar <ba...@gmail.com>.
On 13 November 2013 19:56, Lukas Theussl <lt...@gmail.com> wrote:
>
> Hi Stephen,
>
> The Sink API only knows 5 section levels, which in html are mapped to <h2> -
> <h6>: http://jira.codehaus.org/browse/DOXIA-203

Probably from a typography point of view H1 is junk
(http://practicaltypography.com/point-size.html) and everyone just
jumps to H2 instead.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: Anyone know why Doxia treats H1 as an "unknown" event and H2 as "section_level_1"?

Posted by Lukas Theussl <lt...@gmail.com>.
Hi Stephen,

The Sink API only knows 5 section levels, which in html are mapped to 
<h2> - <h6>: http://jira.codehaus.org/browse/DOXIA-203

HTH,
-Lukas


Am 13.11.2013 10:13, schrieb Stephen Connolly:
> http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-core/src/main/java/org/apache/maven/doxia/parser/XhtmlBaseParser.java?view=markup#l413
>
> Seems strange to me... but perhaps there is a good reason...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org