Files
quickbook/test/blocks.gold
Daniel James bf0a45d4cb Quickbook: Change the anchor markup for headers.
Use a phrase with an id inside the header.

Using an anchor before the heading was causing problems when the heading
wasn't inside a section.

We can't use an anchor inside the header when it links to itself, as it
messes up getting the title for the link. Using an empty phrase means
that it will just get the empty title for the phrase. Thanks to John
Maddock for the idea.

This does generate slightly odd markup. We could possibly use the old
style markup whenever section depth > 0, since we would know that we're
inside a section, but that seems like an unnecessary complication.

[SVN r74346]
2011-09-11 16:58:14 +00:00

112 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN" "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article id="various_blocks" last-revision="DEBUG MODE Date: 2000/12/20 12:00:00 $"
xmlns:xi="http://www.w3.org/2001/XInclude">
<title>Various blocks</title>
<bridgehead renderas="sect2" id="various_blocks.h0">
<phrase id="various_blocks.blockquotes"/><link linkend="various_blocks.blockquotes">Blockquotes</link>
</bridgehead>
<para>
Here's a blockquote:
</para>
<blockquote>
<para>
Blockquote.
</para>
</blockquote>
<para>
And another:
</para>
<blockquote>
<para>
Blockquote first paragraph.
</para>
<para>
Blockquote second paragraph.
</para>
</blockquote>
<bridgehead renderas="sect2" id="various_blocks.h1">
<phrase id="various_blocks.admonitions"/><link linkend="various_blocks.admonitions">Admonitions</link>
</bridgehead>
<warning>
<para>
Warning
</para>
</warning>
<caution>
<para>
Caution
</para>
</caution>
<important>
<para>
Important
</para>
</important>
<note>
<para>
Note
</para>
</note>
<tip>
<para>
Tip
</para>
</tip>
<warning>
<para>
Warning first paragraph.
</para>
<para>
Warning second paragraph.
</para>
</warning>
<bridgehead renderas="sect2" id="various_blocks.h2">
<phrase id="various_blocks.blurb"/><link linkend="various_blocks.blurb">Blurb</link>
</bridgehead>
<sidebar role="blurb">
<para>
Blurb
</para>
</sidebar>
<bridgehead renderas="sect2" id="various_blocks.h3">
<phrase id="various_blocks.inline_blocks"/><link linkend="various_blocks.inline_blocks">Inline
blocks</link>
</bridgehead>
<blockquote>
<para>
Blockquote containing a footnote<footnote id="various_blocks.f0">
<para>
Here it is!
</para>
</footnote>.
</para>
</blockquote>
<para>
[tipping point]
</para>
<para>
Multiple paragraphs because of the inline blocks.
</para>
<warning>
<para>
Warning
</para>
</warning>
<para>
This line should appear as a separate paragraph.
</para>
<warning>
<para>
Warning
</para>
</warning>
<itemizedlist>
<listitem>
<simpara>
This should be a list item because it's preceded by block markup.
</simpara>
</listitem>
</itemizedlist>
</article>