[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] HTML: Enable generating copiable anchors on heading commands
From: |
Patrice Dumas |
Subject: |
Re: [PATCH] HTML: Enable generating copiable anchors on heading commands |
Date: |
Thu, 26 Jan 2023 07:48:50 +0100 |
On Thu, Jan 26, 2023 at 02:42:12AM +0100, Arsen Arsenović wrote:
> I was given the suggestion of adding copiable anchors to heading
> commands, especially in the middle of pages, so that people can easily
> link to sections. This turned out to be relatively easy, though, it
> (understandably) changed a lot of existing output. The current
> implementation reuses the existing stylesheet logic. An example output
> can be seen in a recent render I made of the GCC manual:
>
> https://www.aarsen.me/~arsen/gcc.html/gcc/html_node/
>
> Thoughts?
I have not tested, but I think that, if the $id is set in
_default_format_heading_text, it should be used and the element id (you
pass as $target) should only be used if $id is not set (which means that
the id is on a <div> opened just above and not associated with the
heading, but still makes sense to get the copiable anchor at the
heading, as you do). Other than that looks good to me.
>
> Thanks in advance.
>
> ChangeLog | 11 +
> tp/Texinfo/Convert/HTML.pm | 15 +-
> tp/tests/Makefile.onetst | 1 +
> .../res_parser/formatting_chm/chapter.html | 22 +-
> .../res_parser/formatting_chm/chapter2.html | 4 +-
> .../res_parser/formatting_chm/formatting.html | 22 +-
> .../s_002d_002dect_002cion.html | 8 +-
> .../res_parser/formatting_chm/subsection.html | 8 +-
> ..._0060_0060simple_002ddouble_002d_002d.html | 8 +-
> ...02dfour_002d_002d_002d_002d_0027_0027.html | 8 +-
> .../formatting_html_no_split/formatting.html | 34 +--
> .../formatting_regions.html | 54 ++---
> .../formatting_xhtml/formatting.html | 54 ++---
> tp/tests/customization/list-of-tests | 1 +
> .../sectioning_directions/sectioning.html | 24 +-
> .../First-node.html | 20 +-
> .../Second-node.html | 8 +-
> .../Third-node-unnumbered.html | 8 +-
> .../sectioning_without_anchors/sectioning.1 | 0
> .../sectioning_without_anchors/sectioning.2 | 1 +
> .../sectioning.html | 208 ++++++++++++++++++
> .../test_redefine_need/test_need.html | 8 +-
> .../non_ascii_command_line/Chapteur.html | 4 +-
> .../non_ascii_command_line/index.html | 4 +-
> .../res_parser/cpp_lines/cpp_lines.html | 8 +-
> .../res_parser/defcondx_Dbar/defxcond.html | 8 +-
> .../res_parser/defcondx_Ubar/defxcond.html | 8 +-
> .../documentlanguage.html | 4 +-
> .../index_entries_relate_to_item.html | 2 +-
> .../indices_in_begin_tables_lists.html | 6 +-
> .../res_parser/no_content/no_content.html | 10 +-
> .../no_content_do_contents/no_content.html | 6 +-
> .../no_content.html | 10 +-
> .../no_content.html | 6 +-
> .../no_content_inline/no_content.html | 10 +-
> .../no_content_separate/no_content.html | 10 +-
> .../simplest_test_css/simplest.html | 6 +-
> .../formatting.html | 54 ++---
> .../res_parser/formatting_exotic/chapter.html | 22 +-
> .../formatting_exotic/chapter2.html | 4 +-
> .../res_parser/formatting_exotic/index.html | 4 +-
> .../s_002d_002dect_002cion.html | 10 +-
> .../res_parser/formatting_fr/formatting.html | 54 ++---
> .../formatting_fr_icons/formatting.html | 54 ++---
> .../formatting_inline_css/formatting.html | 54 ++---
> .../formatting_mathjax/formatting.html | 54 ++---
> .../formatting.html | 54 ++---
> .../formatting.html | 34 +--
> .../formatting_texi2html/formatting.html | 54 ++---
> .../formatting_texi2html_nodes/chapter.html | 22 +-
> .../formatting_texi2html_nodes/chapter2.html | 4 +-
> .../formatting_texi2html_nodes/index.html | 22 +-
> .../s_002d_002dect_002cion.html | 4 +-
> .../subsection.html | 4 +-
> ..._0060_0060simple_002ddouble_002d_002d.html | 4 +-
> ...02dfour_002d_002d_002d_002d_0027_0027.html | 4 +-
> .../formatting_weird_quotes/formatting.html | 54 ++---
> .../char_latin1_latin1_in_refs.html | 14 +-
> .../char_latin1_utf8_in_refs.html | 14 +-
> .../no_master_menu_fr.html | 8 +-
> .../no_master_menu_no_documentlanguage.html | 8 +-
> .../simple_including_file.html | 8 +-
> .../nested_cartouche/nested_formats.html | 50 ++---
> .../nested_deffn/nested_formats.html | 50 ++---
> .../nested_enumerate/nested_formats.html | 50 ++---
> .../nested_example/nested_formats.html | 32 +--
> .../nested_flushright/nested_formats.html | 52 ++---
> .../nested_group/nested_formats.html | 50 ++---
> .../nested_itemize/nested_formats.html | 50 ++---
> .../nested_menu/nested_formats.html | 32 +--
> .../nested_multitable/nested_formats.html | 50 ++---
> .../nested_quotation/nested_formats.html | 50 ++---
> .../nested_table/nested_formats.html | 50 ++---
> .../texi_nested_formats/index.html | 50 ++---
> ...ustomization_sectioning_without_anchors.sh | 19 ++
> 75 files changed, 1108 insertions(+), 728 deletions(-)
> create mode 100644
> tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.1
> create mode 100644
> tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.2
> create mode 100644
> tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
> create mode 100755
> tp/tests/test_scripts/customization_sectioning_without_anchors.sh
>
> diff --git a/ChangeLog b/ChangeLog
> index feb1f7c11c..be0ab147ca 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,14 @@
> +2023-01-26 Arsen Arsenović <arsen@aarsen.me>
> +
> + HTML: Enable generating copiable anchors on heading commands
> + * tp/Texinfo/Convert/HTML.pm (_default_format_heading_text): Add
> + optional target argument, for generating a copiable pilcrow.
> + (_convert_heading_command): Pass the element_id of the current
> + heading, so that a pilcrow is generated.
> + * tp/tests/customization/list-of-tests: Add
> + sectioning_without_anchors test, to check getting existing codegen
> + with COPIABLE_LINKS=0.
> +
> 2023-01-25 Arsen Arsenović <arsen@aarsen.me>
>
> ParserNonXS: Fix minor Perl error
> diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
> index 8dd0f1c951..b7c5a455c9 100644
> --- a/tp/Texinfo/Convert/HTML.pm
> +++ b/tp/Texinfo/Convert/HTML.pm
> @@ -3523,7 +3523,7 @@ sub _default_css_string_format_protect_text($$) {
>
> # can be called on root commands, tree units, special elements
> # and title elements. $cmdname can be undef for special elements.
> -sub _default_format_heading_text($$$$$;$$)
> +sub _default_format_heading_text($$$$$;$$$)
> {
> my $self = shift;
> my $cmdname = shift;
> @@ -3532,6 +3532,7 @@ sub _default_format_heading_text($$$$$;$$)
> my $level = shift;
> my $id = shift;
> my $element = shift;
> + my $target = shift;
>
> return '' if ($text !~ /\S/ and not defined($id));
>
> @@ -3550,8 +3551,16 @@ sub _default_format_heading_text($$$$$;$$)
> if (defined($id)) {
> $id_str = " id=\"$id\"";
> }
> + my $inside = $text;
> + if (defined $target && $self->get_conf('COPIABLE_LINKS')) {
> + # Span-wrap this anchor, so that the existing span:hover a.copiable-link
> + # rule applies.
> + $inside = "<span>$text";
> + $inside .= $self->_get_copiable_anchor($target);
> + $inside .= '</span>';
> + }
> my $result = $self->html_attribute_class("h$level", $classes)
> - ."${id_str}>$text</h$level>";
> + ."${id_str}>$inside</h$level>";
> # titlefont appears inline in text, so no end of line is
> # added. The end of line should be added by the user if needed.
> $result .= "\n" unless (defined($cmdname) and $cmdname eq 'titlefont');
> @@ -4268,7 +4277,7 @@ sub _convert_heading_command($$$$$)
> $result .= &{$self->formatting_function('format_heading_text')}($self,
> $level_corrected_cmdname, \@heading_classes, $heading,
> $heading_level +$self->get_conf('CHAPTER_HEADER_LEVEL')
> -1,
> - $heading_id, $element);
> + $heading_id, $element, $element_id);
> }
> } elsif (defined($heading_id)) {
> # case of a lone node and no header, and case of an empty @top
> diff --git a/tp/tests/Makefile.onetst b/tp/tests/Makefile.onetst
> index bfbd80de21..5223d8089f 100644
> --- a/tp/tests/Makefile.onetst
> +++ b/tp/tests/Makefile.onetst
> @@ -61,6 +61,7 @@ type_base_one_test_files_generated_list = \
> test_scripts/customization_test_redefine_need.sh \
> test_scripts/customization_sectioning_directions.sh \
> test_scripts/customization_sectioning_directions_split_chapter.sh \
> + test_scripts/customization_sectioning_without_anchors.sh \
> test_scripts/customization_double_contents_book.sh \
> test_scripts/customization_double_contents_after_title_book.sh \
> test_scripts/customization_double_contents_after_title_book_chapter.sh \
> diff --git a/tp/tests/coverage/res_parser/formatting_chm/chapter.html
> b/tp/tests/coverage/res_parser/formatting_chm/chapter.html
> index fe39cc7721..4b693690ec 100644
> --- a/tp/tests/coverage/res_parser/formatting_chm/chapter.html
> +++ b/tp/tests/coverage/res_parser/formatting_chm/chapter.html
> @@ -898,7 +898,7 @@ ul.mark-none {list-style-type: none}
>
> <body lang="en">
> <div class="chapter-level-extent" id="chapter">
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -1825,15 +1825,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2916,15 +2916,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> diff --git a/tp/tests/coverage/res_parser/formatting_chm/chapter2.html
> b/tp/tests/coverage/res_parser/formatting_chm/chapter2.html
> index 049152a172..29f32c70aa 100644
> --- a/tp/tests/coverage/res_parser/formatting_chm/chapter2.html
> +++ b/tp/tests/coverage/res_parser/formatting_chm/chapter2.html
> @@ -864,8 +864,10 @@ g-roupe
> <link href="chapter.html" rel="prev" title="1 chapter">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> a.summary-letter-printindex {text-decoration: none}
> h2.centerchap {text-align:center}
> +span:hover a.copiable-link {visibility: visible}
> td.index-entry-level-1 {padding-left: 1.5em}
> td.index-entry-level-2 {padding-left: 3.0em}
> td.printindex-index-entry {vertical-align: top}
> @@ -881,7 +883,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
>
> <body lang="en">
> <div class="centerchap-level-extent" id="chapter2">
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/coverage/res_parser/formatting_chm/formatting.html
> b/tp/tests/coverage/res_parser/formatting_chm/formatting.html
> index 9e6505f109..03a75e2fa1 100644
> --- a/tp/tests/coverage/res_parser/formatting_chm/formatting.html
> +++ b/tp/tests/coverage/res_parser/formatting_chm/formatting.html
> @@ -1808,15 +1808,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2901,15 +2901,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3086,7 +3086,7 @@ html ''
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
>
>
> diff --git
> a/tp/tests/coverage/res_parser/formatting_chm/s_002d_002dect_002cion.html
> b/tp/tests/coverage/res_parser/formatting_chm/s_002d_002dect_002cion.html
> index ffd8c96ab8..d9b6f8625b 100644
> --- a/tp/tests/coverage/res_parser/formatting_chm/s_002d_002dect_002cion.html
> +++ b/tp/tests/coverage/res_parser/formatting_chm/s_002d_002dect_002cion.html
> @@ -861,13 +861,19 @@ g-roupe
> <link href="chapter.html" rel="index" title="1 chapter">
> <link href="formatting_toc.html#SEC_Contents" rel="contents" title="Table of
> Contents">
> <link href="chapter.html" rel="up" title="1 chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
>
> <body lang="en">
> <div class="section-level-extent" id="s_002d_002dect_002cion">
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> </div>
> diff --git a/tp/tests/coverage/res_parser/formatting_chm/subsection.html
> b/tp/tests/coverage/res_parser/formatting_chm/subsection.html
> index cf9a52069b..9afc638772 100644
> --- a/tp/tests/coverage/res_parser/formatting_chm/subsection.html
> +++ b/tp/tests/coverage/res_parser/formatting_chm/subsection.html
> @@ -861,13 +861,19 @@ g-roupe
> <link href="chapter.html" rel="index" title="1 chapter">
> <link href="formatting_toc.html#SEC_Contents" rel="contents" title="Table of
> Contents">
> <link href="s_002d_002dect_002cion.html" rel="up" title="1.1 A section">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
>
> <body lang="en">
> <div class="subsection-level-extent" id="subsection">
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> diff --git
> a/tp/tests/coverage/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
>
> b/tp/tests/coverage/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> index da7d64df90..628dd06567 100644
> ---
> a/tp/tests/coverage/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> +++
> b/tp/tests/coverage/res_parser/formatting_chm/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> @@ -862,13 +862,19 @@ g-roupe
> <link href="formatting_toc.html#SEC_Contents" rel="contents" title="Table of
> Contents">
> <link href="subsection.html" rel="up" title="1.1.1 subsection">
> <link
> href="subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html"
> rel="next" title="1.1.1.2 three—four—-”">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
>
> <body lang="en">
> <div class="subsubsection-level-extent"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d">
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> </div>
>
> diff --git
> a/tp/tests/coverage/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
>
> b/tp/tests/coverage/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> index dce68d3674..5e56962497 100644
> ---
> a/tp/tests/coverage/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> +++
> b/tp/tests/coverage/res_parser/formatting_chm/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> @@ -862,13 +862,19 @@ g-roupe
> <link href="formatting_toc.html#SEC_Contents" rel="contents" title="Table of
> Contents">
> <link href="subsection.html" rel="up" title="1.1.1 subsection">
> <link href="subsubsection-_0060_0060simple_002ddouble_002d_002d.html"
> rel="prev" title="1.1.1.1 subsubsection “simple-double–">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
>
> <body lang="en">
> <div class="subsubsection-level-extent"
> id="subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> </div>
>
> diff --git
> a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
> b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
> index 1583d667a1..5513dde689 100644
> --- a/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
> +++ b/tp/tests/coverage/res_parser/formatting_html_no_split/formatting.html
> @@ -910,7 +910,7 @@ ul.toc-numbered-mark {list-style: none}
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
>
>
> @@ -951,7 +951,7 @@ Next: <a href="#chapter" accesskey="n"
> rel="next">chapter</a> [<a href="#
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -1878,15 +1878,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2969,15 +2969,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5042,7 +5042,7 @@ Invalid use of @':
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> <ul class="mini-toc">
> @@ -5054,7 +5054,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> @@ -5068,7 +5068,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -5077,7 +5077,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -5089,7 +5089,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git
> a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
> b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
> index 91c39f46f9..e998933f38 100644
> --- a/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
> +++ b/tp/tests/coverage/res_parser/formatting_regions/formatting_regions.html
> @@ -1815,15 +1815,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2907,15 +2907,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3090,7 +3090,7 @@ html ''
> <p>
> Next: <a href="#constructs" accesskey="n" rel="next">constructs</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
> <div class="element-contents" id="SEC_Contents">
> <h2 class="contents-heading">Table of Contents</h2>
>
> @@ -3129,7 +3129,7 @@ Next: <a href="#constructs" accesskey="n"
> rel="next">constructs</a> [<a h
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a>, Previous: <a
> href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#constructs"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="constructs-1">1 constructs</h2>
> +<h2 class="chapter" id="constructs-1"><span>1 constructs<a
> class="copiable-link" href='#constructs-1'> ¶</a></span></h2>
>
>
>
> @@ -4048,15 +4048,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -6385,15 +6385,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7120,7 +7120,7 @@ html ''
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#constructs" accesskey="p" rel="prev">constructs</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">2 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>2 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p><a class="footnote" id="DOCF9" href="#FOOT9"><sup>11</sup></a>
> </p>
> @@ -7134,7 +7134,7 @@ Next: <a href="#chapter2" accesskey="n"
> rel="next">chapter 2</a>, Previous: <a h
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h3 class="section" id="A-section">2.1 A section</h3>
> +<h3 class="section" id="A-section"><span>2.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> <ul class="mini-toc">
> @@ -7146,7 +7146,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">2.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>2.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> @@ -7159,7 +7159,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Up: <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection" id="subsubsection-1">2.1.1.1 subsubsection</h4>
> +<h4 class="subsubsection" id="subsubsection-1"><span>2.1.1.1 subsubsection<a
> class="copiable-link" href='#subsubsection-1'> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7171,7 +7171,7 @@ Up: <a href="#subsection" accesskey="u"
> rel="up">subsection</a> [<a href=
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#constructs" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
> b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
> index be21028cc3..4f9d118d58 100644
> --- a/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
> +++ b/tp/tests/coverage/res_parser/formatting_xhtml/formatting.html
> @@ -1821,15 +1821,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2914,15 +2914,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3103,7 +3103,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
>
>
> @@ -3144,7 +3144,7 @@ Next: <a href="#chapter" accesskey="n"
> rel="next">chapter</a> [<a href="#
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4071,15 +4071,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5162,15 +5162,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7235,7 +7235,7 @@ Invalid use of @':
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> <ul class="mini-toc">
> @@ -7247,7 +7247,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> @@ -7261,7 +7261,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr/>
> </div>
> @@ -7270,7 +7270,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr/>
> </div>
> @@ -7282,7 +7282,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/customization/list-of-tests
> b/tp/tests/customization/list-of-tests
> index 0e356b5238..b2fd3f6b15 100644
> --- a/tp/tests/customization/list-of-tests
> +++ b/tp/tests/customization/list-of-tests
> @@ -7,6 +7,7 @@ test_redefine_need test_need.texi --html --no-split --init
> redefine_need.init
> # sectioning.texi also used in t/*.t
> sectioning_directions sectioning.texi --html --no-split -c
> 'HEADER_IN_TABLE=1' -c 'USE_NODES=0' -c 'FORMAT_MENU=menu' -c
> 'NODE_NAME_IN_MENU=0' -c 'DO_ABOUT=undef' -c
> 'CONTENTS_OUTPUT_LOCATION=separate_element' --init test_directions.init
> sectioning_directions_split_chapter sectioning.texi --html --split=chapter
> -c 'HEADER_IN_TABLE=1' -c 'USE_NODES=0' -c 'FORMAT_MENU=menu' -c
> 'NODE_NAME_IN_MENU=0' -c 'DO_ABOUT=undef' -c
> 'CONTENTS_OUTPUT_LOCATION=separate_element' --init test_directions.init
> +sectioning_without_anchors sectioning.texi --html --no-split -c
> 'COPIABLE_LINKS=0'
>
> # many other tests using double_contents.texi are in t/*.t, but customization
> # variables set in init files are not used in the t/*.t test suite, so there
> cannot
> diff --git
> a/tp/tests/customization/res_parser/sectioning_directions/sectioning.html
> b/tp/tests/customization/res_parser/sectioning_directions/sectioning.html
> index 5ed0ae3fc7..d8b40ce146 100644
> --- a/tp/tests/customization/res_parser/sectioning_directions/sectioning.html
> +++ b/tp/tests/customization/res_parser/sectioning_directions/sectioning.html
> @@ -19,7 +19,9 @@
> <link href="dir.html#Top" rel="prev" title="(dir)">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> pre.menu-comment-preformatted {font-family: serif}
> +span:hover a.copiable-link {visibility: visible}
> td.button-direction-about {text-align:center}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> @@ -281,7 +283,7 @@ description here
> <td></td>
> <td>|</td>
> </tr></table>
> -<h2 class="chapter" id="first-node-chapter">1 first node chapter</h2>
> +<h2 class="chapter" id="first-node-chapter"><span>1 first node chapter<a
> class="copiable-link" href='#first-node-chapter'> ¶</a></span></h2>
>
> <p>first node chapter text
> </p><table class="menu" border="0" cellspacing="0">
> @@ -403,7 +405,7 @@ description here
> <td>1 first node chapter</td>
> <td>|</td>
> </tr></table>
> -<h3 class="unnumberedsec" id="unnumbered-section">unnumbered section</h3>
> +<h3 class="unnumberedsec" id="unnumbered-section"><span>unnumbered section<a
> class="copiable-link" href='#unnumbered-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#unnumbered-sub"
> accesskey="1">unnumbered subsection</a>:</td><td> </td><td
> class="menu-entry-description">un
> @@ -524,7 +526,7 @@ description here
> <td>unnumbered section</td>
> <td>|</td>
> </tr></table>
> -<h4 class="unnumberedsubsec" id="unnumbered-subsection">unnumbered
> subsection</h4>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection"><span>unnumbered
> subsection<a class="copiable-link" href='#unnumbered-subsection'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -635,7 +637,7 @@ description here
> <td>unnumbered subsection</td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection">numbered subsection</h4>
> +<h4 class="subsection" id="numbered-subsection"><span>numbered subsection<a
> class="copiable-link" href='#numbered-subsection'> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -746,7 +748,7 @@ description here
> <td>numbered subsection</td>
> <td>|</td>
> </tr></table>
> -<h4 class="unnumberedsubsec" id="unnumbered-subsection2">unnumbered
> subsection2</h4>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection2"><span>unnumbered
> subsection2<a class="copiable-link" href='#unnumbered-subsection2'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -857,7 +859,7 @@ description here
> <td>unnumbered subsection2</td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection2">numbered subsection2</h4>
> +<h4 class="subsection" id="numbered-subsection2"><span>numbered
> subsection2<a class="copiable-link" href='#numbered-subsection2'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -969,7 +971,7 @@ description here
> <td>numbered subsection2</td>
> <td>|</td>
> </tr></table>
> -<h3 class="unnumberedsec" id="unnumbered-section2">unnumbered section2</h3>
> +<h3 class="unnumberedsec" id="unnumbered-section2"><span>unnumbered
> section2<a class="copiable-link" href='#unnumbered-section2'>
> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#numbered-sub3"
> accesskey="1">numbered subsection3</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -1084,7 +1086,7 @@ description here
> <td>unnumbered section2</td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection3">numbered subsection3</h4>
> +<h4 class="subsection" id="numbered-subsection3"><span>numbered
> subsection3<a class="copiable-link" href='#numbered-subsection3'>
> ¶</a></span></h4>
>
>
> <hr>
> @@ -1197,7 +1199,7 @@ description here
> <td>numbered subsection3</td>
> <td>|</td>
> </tr></table>
> -<h3 class="section" id="numbered-section">1.1 numbered section</h3>
> +<h3 class="section" id="numbered-section"><span>1.1 numbered section<a
> class="copiable-link" href='#numbered-section'> ¶</a></span></h3>
>
> <a class="node" id="between-node"></a>
> <p>between node, node without sectioning node
> @@ -1315,7 +1317,7 @@ description here
>
> <p>Second node text
> </p>
> -<h2 class="chapter" id="second-node-chapter">2 second node chapter</h2>
> +<h2 class="chapter" id="second-node-chapter"><span>2 second node chapter<a
> class="copiable-link" href='#second-node-chapter'> ¶</a></span></h2>
>
> <p>second node chapter text.
> </p>
> @@ -1428,7 +1430,7 @@ description here
> <td>2 second node chapter</td>
> <td>|</td>
> </tr></table>
> -<h2 class="unnumbered" id="unnumbered-chapter">unnumbered chapter</h2>
> +<h2 class="unnumbered" id="unnumbered-chapter"><span>unnumbered chapter<a
> class="copiable-link" href='#unnumbered-chapter'> ¶</a></span></h2>
>
> <p>unnumbered chapter text.
> </p>
> diff --git
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/First-node.html
>
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/First-node.html
> index a105260d47..ea5614e5d9 100644
> ---
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/First-node.html
> +++
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/First-node.html
> @@ -19,7 +19,9 @@
> <link href="index.html" rel="prev" title="">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> pre.menu-comment-preformatted {font-family: serif}
> +span:hover a.copiable-link {visibility: visible}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> th.menu-comment {text-align:left}
> @@ -241,7 +243,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h2 class="chapter" id="first-node-chapter">1 first node chapter</h2>
> +<h2 class="chapter" id="first-node-chapter"><span>1 first node chapter<a
> class="copiable-link" href='#first-node-chapter'> ¶</a></span></h2>
>
> <p>first node chapter text
> </p><table class="menu" border="0" cellspacing="0">
> @@ -467,7 +469,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h3 class="unnumberedsec" id="unnumbered-section">unnumbered section</h3>
> +<h3 class="unnumberedsec" id="unnumbered-section"><span>unnumbered section<a
> class="copiable-link" href='#unnumbered-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#unnumbered-sub"
> accesskey="1">unnumbered subsection</a>:</td><td> </td><td
> class="menu-entry-description">un
> @@ -692,7 +694,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h4 class="unnumberedsubsec" id="unnumbered-subsection">unnumbered
> subsection</h4>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection"><span>unnumbered
> subsection<a class="copiable-link" href='#unnumbered-subsection'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -907,7 +909,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection">numbered subsection</h4>
> +<h4 class="subsection" id="numbered-subsection"><span>numbered subsection<a
> class="copiable-link" href='#numbered-subsection'> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -1122,7 +1124,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h4 class="unnumberedsubsec" id="unnumbered-subsection2">unnumbered
> subsection2</h4>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection2"><span>unnumbered
> subsection2<a class="copiable-link" href='#unnumbered-subsection2'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -1337,7 +1339,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection2">numbered subsection2</h4>
> +<h4 class="subsection" id="numbered-subsection2"><span>numbered
> subsection2<a class="copiable-link" href='#numbered-subsection2'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -1553,7 +1555,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h3 class="unnumberedsec" id="unnumbered-section2">unnumbered section2</h3>
> +<h3 class="unnumberedsec" id="unnumbered-section2"><span>unnumbered
> section2<a class="copiable-link" href='#unnumbered-section2'>
> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#numbered-sub3"
> accesskey="1">numbered subsection3</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -1772,7 +1774,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h4 class="subsection" id="numbered-subsection3">numbered subsection3</h4>
> +<h4 class="subsection" id="numbered-subsection3"><span>numbered
> subsection3<a class="copiable-link" href='#numbered-subsection3'>
> ¶</a></span></h4>
>
>
> <hr>
> @@ -1989,7 +1991,7 @@ th.menu-comment {text-align:left}
> <td></td>
> <td>|</td>
> </tr></table>
> -<h3 class="section" id="numbered-section">1.1 numbered section</h3>
> +<h3 class="section" id="numbered-section"><span>1.1 numbered section<a
> class="copiable-link" href='#numbered-section'> ¶</a></span></h3>
>
> <a class="node" id="between-node"></a>
> <p>between node, node without sectioning node
> diff --git
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Second-node.html
>
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Second-node.html
> index 1ff4300d40..4301db8508 100644
> ---
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Second-node.html
> +++
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Second-node.html
> @@ -17,6 +17,12 @@
> <link href="sectioning_abt.html#SEC_About" rel="help" title="About This
> Document">
> <link href="index.html" rel="up" title="">
> <link href="Third-node-unnumbered.html" rel="next" title="unnumbered
> chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -236,7 +242,7 @@
>
> <p>Second node text
> </p>
> -<h2 class="chapter" id="second-node-chapter">2 second node chapter</h2>
> +<h2 class="chapter" id="second-node-chapter"><span>2 second node chapter<a
> class="copiable-link" href='#second-node-chapter'> ¶</a></span></h2>
>
> <p>second node chapter text.
> </p>
> diff --git
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Third-node-unnumbered.html
>
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Third-node-unnumbered.html
> index 8d11eeac02..bc2a55e08f 100644
> ---
> a/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Third-node-unnumbered.html
> +++
> b/tp/tests/customization/res_parser/sectioning_directions_split_chapter/Third-node-unnumbered.html
> @@ -18,6 +18,12 @@
> <link href="index.html" rel="up" title="">
> <link href="#Third-node-unnumbered" rel="next" title="unnumbered chapter">
> <link href="Second-node.html" rel="prev" title="2 second node chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -234,7 +240,7 @@
> <td>2 second node chapter</td>
> <td>|</td>
> </tr></table>
> -<h2 class="unnumbered" id="unnumbered-chapter">unnumbered chapter</h2>
> +<h2 class="unnumbered" id="unnumbered-chapter"><span>unnumbered chapter<a
> class="copiable-link" href='#unnumbered-chapter'> ¶</a></span></h2>
>
> <p>unnumbered chapter text.
> </p>
> diff --git
> a/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.1
> b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.1
> new file mode 100644
> index 0000000000..e69de29bb2
> diff --git
> a/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.2
> b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.2
> new file mode 100644
> index 0000000000..c8a6cb0ac9
> --- /dev/null
> +++
> b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.2
> @@ -0,0 +1 @@
> +sectioning.texi: warning: must specify a title with a title command or @top
> diff --git
> a/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
>
> b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
> new file mode 100644
> index 0000000000..378f2e300a
> --- /dev/null
> +++
> b/tp/tests/customization/res_parser/sectioning_without_anchors/sectioning.html
> @@ -0,0 +1,208 @@
> +<!DOCTYPE html>
> +<html>
> +<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
> +<head>
> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> +<title>Untitled Document</title>
> +
> +<meta name="description" content="Untitled Document">
> +<meta name="keywords" content="Untitled Document">
> +<meta name="resource-type" content="document">
> +<meta name="distribution" content="global">
> +<meta name="Generator" content="texi2any">
> +<meta name="viewport" content="width=device-width,initial-scale=1">
> +
> +<link href="#Top" rel="start" title="Top">
> +<link href="#SEC_Contents" rel="contents" title="Table of Contents">
> +<link href="#First-node" rel="next" title="First node">
> +<link href="dir.html#Top" rel="prev" title="(dir)">
> +<style type="text/css">
> +<!--
> +ul.toc-numbered-mark {list-style: none}
> +-->
> +</style>
> +
> +
> +</head>
> +
> +<body lang="en">
> +<div class="top-level-extent" id="Top">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#First-node" accesskey="n" rel="next">first node chapter</a>,
> Previous: <a href="dir.html#Top" accesskey="p" rel="prev">(dir)</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<a class="top" id="SEC_Top"></a>
> +<div class="element-contents" id="SEC_Contents">
> +<h2 class="contents-heading">Table of Contents</h2>
> +
> +<div class="contents">
> +
> +<ul class="toc-numbered-mark">
> + <li><a id="toc-first-node-chapter" href="#First-node">1 first node
> chapter</a>
> + <ul class="toc-numbered-mark">
> + <li><a id="toc-unnumbered-section" href="#unnumbered">unnumbered
> section</a>
> + <ul class="toc-numbered-mark">
> + <li><a id="toc-unnumbered-subsection"
> href="#unnumbered-sub">unnumbered subsection</a></li>
> + <li><a id="toc-numbered-subsection" href="#numbered-sub">numbered
> subsection</a></li>
> + <li><a id="toc-unnumbered-subsection2"
> href="#unnumbered-sub2">unnumbered subsection2</a></li>
> + <li><a id="toc-numbered-subsection2" href="#numbered-sub2">numbered
> subsection2</a></li>
> + </ul></li>
> + <li><a id="toc-unnumbered-section2" href="#unnumbered2">unnumbered
> section2</a>
> + <ul class="toc-numbered-mark">
> + <li><a id="toc-numbered-subsection3" href="#numbered-sub3">numbered
> subsection3</a></li>
> + </ul></li>
> + <li><a id="toc-numbered-section" href="#numbered">1.1 numbered
> section</a></li>
> + </ul></li>
> + <li><a id="toc-second-node-chapter" href="#Second-node">2 second node
> chapter</a></li>
> + <li><a id="toc-unnumbered-chapter"
> href="#Third-node-unnumbered">unnumbered chapter</a></li>
> +</ul>
> +</div>
> +</div>
> +<hr>
> +<div class="chapter-level-extent" id="First-node">
> +<div class="nav-panel">
> +<p>
> + [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h2 class="chapter" id="first-node-chapter">1 first node chapter</h2>
> +
> +<p>first node chapter text
> +</p>
> +<ul class="mini-toc">
> +<li><a href="#unnumbered" accesskey="1">unnumbered section</a></li>
> +<li><a href="#unnumbered2" accesskey="2">unnumbered section2</a></li>
> +<li><a href="#numbered" accesskey="3">numbered section</a></li>
> +</ul>
> +<hr>
> +<div class="unnumberedsec-level-extent" id="unnumbered">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#unnumbered2" accesskey="n" rel="next">unnumbered
> section2</a>, Up: <a href="#First-node" accesskey="u" rel="up">first node
> chapter</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h3 class="unnumberedsec" id="unnumbered-section">unnumbered section</h3>
> +
> +
> +<ul class="mini-toc">
> +<li><a href="#unnumbered-sub" accesskey="1">unnumbered subsection</a></li>
> +<li><a href="#numbered-sub" accesskey="2">numbered subsection</a></li>
> +<li><a href="#unnumbered-sub2" accesskey="3">unnumbered subsection2</a></li>
> +<li><a href="#numbered-sub2" accesskey="4">numbered subsection2</a></li>
> +</ul>
> +<hr>
> +<div class="unnumberedsubsec-level-extent" id="unnumbered-sub">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#numbered-sub" accesskey="n" rel="next">numbered
> subsection</a>, Up: <a href="#unnumbered" accesskey="u" rel="up">unnumbered
> section</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection">unnumbered
> subsection</h4>
> +
> +<hr>
> +</div>
> +<div class="subsection-level-extent" id="numbered-sub">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#unnumbered-sub2" accesskey="n" rel="next">unnumbered
> subsection2</a>, Previous: <a href="#unnumbered-sub" accesskey="p"
> rel="prev">unnumbered subsection</a>, Up: <a href="#unnumbered" accesskey="u"
> rel="up">unnumbered section</a> [<a href="#SEC_Contents" title="Table
> of contents" rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="subsection" id="numbered-subsection">numbered subsection</h4>
> +
> +<hr>
> +</div>
> +<div class="unnumberedsubsec-level-extent" id="unnumbered-sub2">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#numbered-sub2" accesskey="n" rel="next">numbered
> subsection2</a>, Previous: <a href="#numbered-sub" accesskey="p"
> rel="prev">numbered subsection</a>, Up: <a href="#unnumbered" accesskey="u"
> rel="up">unnumbered section</a> [<a href="#SEC_Contents" title="Table
> of contents" rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="unnumberedsubsec" id="unnumbered-subsection2">unnumbered
> subsection2</h4>
> +
> +<hr>
> +</div>
> +<div class="subsection-level-extent" id="numbered-sub2">
> +<div class="nav-panel">
> +<p>
> +Previous: <a href="#unnumbered-sub2" accesskey="p" rel="prev">unnumbered
> subsection2</a>, Up: <a href="#unnumbered" accesskey="u" rel="up">unnumbered
> section</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="subsection" id="numbered-subsection2">numbered subsection2</h4>
> +
> +<hr>
> +</div>
> +</div>
> +<div class="unnumberedsec-level-extent" id="unnumbered2">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#numbered" accesskey="n" rel="next">numbered section</a>,
> Previous: <a href="#unnumbered" accesskey="p" rel="prev">unnumbered
> section</a>, Up: <a href="#First-node" accesskey="u" rel="up">first node
> chapter</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h3 class="unnumberedsec" id="unnumbered-section2">unnumbered section2</h3>
> +
> +
> +<ul class="mini-toc">
> +<li><a href="#numbered-sub3" accesskey="1">numbered subsection3</a></li>
> +</ul>
> +<hr>
> +<div class="subsection-level-extent" id="numbered-sub3">
> +<div class="nav-panel">
> +<p>
> +Up: <a href="#unnumbered2" accesskey="u" rel="up">unnumbered section2</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="subsection" id="numbered-subsection3">numbered subsection3</h4>
> +
> +
> +<hr>
> +</div>
> +</div>
> +<div class="section-level-extent" id="numbered">
> +<div class="nav-panel">
> +<p>
> +Previous: <a href="#unnumbered2" accesskey="p" rel="prev">unnumbered
> section2</a>, Up: <a href="#First-node" accesskey="u" rel="up">first node
> chapter</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h3 class="section" id="numbered-section">1.1 numbered section</h3>
> +
> +<hr>
> +<a class="node-id" id="between-node"></a><div class="nav-panel">
> +<p>
> + [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="node">between node</h4>
> +
> +<p>between node, node without sectioning node
> +</p>
> +<hr>
> +</div>
> +</div>
> +<div class="chapter-level-extent" id="Second-node">
> +<div class="nav-panel">
> +<p>
> +Next: <a href="#Third-node-unnumbered" accesskey="n" rel="next">unnumbered
> chapter</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +
> +<p>Second node text
> +</p>
> +<h2 class="chapter" id="second-node-chapter">2 second node chapter</h2>
> +
> +<p>second node chapter text.
> +</p>
> +<hr>
> +</div>
> +<div class="unnumbered-level-extent" id="Third-node-unnumbered">
> +<div class="nav-panel">
> +<p>
> +Previous: <a href="#Second-node" accesskey="p" rel="prev">second node
> chapter</a> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> +</div>
> +<h2 class="unnumbered" id="unnumbered-chapter">unnumbered chapter</h2>
> +
> +<p>unnumbered chapter text.
> +</p>
> +
> +<hr>
> +<a class="node-id" id="Last-node-no-description"></a><div class="nav-panel">
> +<p>
> +Previous: <a href="#Third-node-unnumbered" accesskey="p"
> rel="prev">unnumbered chapter</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>]</p>
> +</div>
> +<h4 class="node">Last node no description</h4>
> +
> +</div>
> +</div>
> +
> +
> +
> +</body>
> +</html>
> diff --git
> a/tp/tests/customization/res_parser/test_redefine_need/test_need.html
> b/tp/tests/customization/res_parser/test_redefine_need/test_need.html
> index 39720cb0b4..015774ba42 100644
> --- a/tp/tests/customization/res_parser/test_redefine_need/test_need.html
> +++ b/tp/tests/customization/res_parser/test_redefine_need/test_need.html
> @@ -13,6 +13,12 @@
> <meta name="viewport" content="width=device-width,initial-scale=1">
>
> <link href="#Top" rel="start" title="Top">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -20,7 +26,7 @@
> <body lang="en">
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-need">Test need</h1>
> +<h1 class="top" id="Test-need"><span>Test need<a class="copiable-link"
> href='#Test-need'> ¶</a></span></h1>
>
> <p>@need </p><!-- need: 0.1 on line following -->
> <p>@need </p><!-- need: 0.1 -->
> diff --git a/tp/tests/encoded/res_parser/non_ascii_command_line/Chapteur.html
> b/tp/tests/encoded/res_parser/non_ascii_command_line/Chapteur.html
> index c450ae836c..e3292445f9 100644
> --- a/tp/tests/encoded/res_parser/non_ascii_command_line/Chapteur.html
> +++ b/tp/tests/encoded/res_parser/non_ascii_command_line/Chapteur.html
> @@ -29,6 +29,8 @@
> @import ("strânge\" ;file") ;
>
>
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> @media tv { h3 {text-align: left} }
> ul.mark-euro {list-style-type: "€"}
> ul.mark-néni {list-style-type: "vàça"}
> @@ -48,7 +50,7 @@ ul.mark-néni {list-style-type: "vàça"}
> Previous: <a href="index.html" accesskey="p" rel="prev">Tôp</a>, Up: <a
> href="index.html" accesskey="u" rel="up">Tôp</a> [<a
> href="osé_utf8_abt.html#SEC_About" title="About (help)" rel="help"> ?
> </a>]</p>
> </div>
> <hr>
> -<h2 class="chapter" id="Chapteur">1 Chapteùr</h2>
> +<h2 class="chapter" id="Chapteur"><span>1 Chapteùr<a class="copiable-link"
> href='#Chapteur'> ¶</a></span></h2>
>
> <p>isset TÛT
> </p>
> diff --git a/tp/tests/encoded/res_parser/non_ascii_command_line/index.html
> b/tp/tests/encoded/res_parser/non_ascii_command_line/index.html
> index d1490012e9..8fd20aa9f7 100644
> --- a/tp/tests/encoded/res_parser/non_ascii_command_line/index.html
> +++ b/tp/tests/encoded/res_parser/non_ascii_command_line/index.html
> @@ -28,6 +28,8 @@
> @import ("strânge\" ;file") ;
>
>
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> @media tv { h3 {text-align: left} }
> ul.mark-euro {list-style-type: "€"}
> ul.mark-néni {list-style-type: "vàça"}
> @@ -48,7 +50,7 @@ ul.mark-néni {list-style-type: "vàça"}
> Next: <a href="Chapteur.html" accesskey="n" rel="next">Chapteùr</a>
> [<a href="osé_utf8_abt.html#SEC_About" title="About (help)" rel="help"> ?
> </a>]</p>
> </div>
> <hr>
> -<h1 class="top" id="Top-1">Tôp</h1>
> +<h1 class="top" id="Top-1"><span>Tôp<a class="copiable-link" href='#Top-1'>
> ¶</a></span></h1>
>
> </div>
> <hr>
> diff --git a/tp/tests/formatting/res_parser/cpp_lines/cpp_lines.html
> b/tp/tests/formatting/res_parser/cpp_lines/cpp_lines.html
> index 9400a0f1ab..ad0e3fc8d1 100644
> --- a/tp/tests/formatting/res_parser/cpp_lines/cpp_lines.html
> +++ b/tp/tests/formatting/res_parser/cpp_lines/cpp_lines.html
> @@ -13,6 +13,12 @@
> <meta name="viewport" content="width=device-width,initial-scale=1">
>
> <link href="#Top" rel="start" title="Top">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -22,7 +28,7 @@
>
> <p><a class="email" href="mailto:before%20top">before top</a>.
> </p>
> -<h1 class="node" id="Top">Top</h1>
> +<h1 class="node" id="Top"><span>Top<a class="copiable-link" href='#Top'>
> ¶</a></span></h1>
>
> <p># 10 25 209
> # 1 2
> diff --git a/tp/tests/formatting/res_parser/defcondx_Dbar/defxcond.html
> b/tp/tests/formatting/res_parser/defcondx_Dbar/defxcond.html
> index 2e6eef1fcd..8e55e9d918 100644
> --- a/tp/tests/formatting/res_parser/defcondx_Dbar/defxcond.html
> +++ b/tp/tests/formatting/res_parser/defcondx_Dbar/defxcond.html
> @@ -12,6 +12,12 @@
> <meta name="Generator" content="texi2any">
> <meta name="viewport" content="width=device-width,initial-scale=1">
>
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -20,7 +26,7 @@
>
>
> <div class="top-level-extent" id="deffnx-inside-conditional">
> -<h1 class="top">deffnx inside conditional</h1>
> +<h1 class="top"><span>deffnx inside conditional<a class="copiable-link"
> href='#deffnx-inside-conditional'> ¶</a></span></h1>
>
> <dl class="first-deffn">
> <dt class="deffn"><span class="category-def">foo: </span></dt>
> diff --git a/tp/tests/formatting/res_parser/defcondx_Ubar/defxcond.html
> b/tp/tests/formatting/res_parser/defcondx_Ubar/defxcond.html
> index 82ef7423e2..1a16205dc4 100644
> --- a/tp/tests/formatting/res_parser/defcondx_Ubar/defxcond.html
> +++ b/tp/tests/formatting/res_parser/defcondx_Ubar/defxcond.html
> @@ -12,6 +12,12 @@
> <meta name="Generator" content="texi2any">
> <meta name="viewport" content="width=device-width,initial-scale=1">
>
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -20,7 +26,7 @@
>
>
> <div class="top-level-extent" id="deffnx-inside-conditional">
> -<h1 class="top">deffnx inside conditional</h1>
> +<h1 class="top"><span>deffnx inside conditional<a class="copiable-link"
> href='#deffnx-inside-conditional'> ¶</a></span></h1>
>
> <dl class="first-deffn">
> <dt class="deffn"><span class="category-def">foo: </span></dt>
> diff --git
> a/tp/tests/formatting/res_parser/documentlanguage_cmdline/documentlanguage.html
>
> b/tp/tests/formatting/res_parser/documentlanguage_cmdline/documentlanguage.html
> index ffcdad18d8..577279fc5e 100644
> ---
> a/tp/tests/formatting/res_parser/documentlanguage_cmdline/documentlanguage.html
> +++
> b/tp/tests/formatting/res_parser/documentlanguage_cmdline/documentlanguage.html
> @@ -43,7 +43,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="top" id="top-section">top section</h1>
> +<h1 class="top" id="top-section"><span>top section<a class="copiable-link"
> href='#top-section'> ¶</a></span></h1>
>
> <hr style="height: 6px;">
> <div class="chapter-level-extent" id="chapter">
> @@ -62,7 +62,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="chapter" id="Chapter">1 Chapter</h1>
> +<h1 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link"
> href='#Chapter'> ¶</a></span></h1>
>
> <p>Voir <a class="xref" href="#chapter">Chapter</a>.
> </p>
> diff --git
> a/tp/tests/formatting/res_parser/index_entries_relate_to_item/index_entries_relate_to_item.html
>
> b/tp/tests/formatting/res_parser/index_entries_relate_to_item/index_entries_relate_to_item.html
> index 7ed8f8b204..f88a3b4c1d 100644
> ---
> a/tp/tests/formatting/res_parser/index_entries_relate_to_item/index_entries_relate_to_item.html
> +++
> b/tp/tests/formatting/res_parser/index_entries_relate_to_item/index_entries_relate_to_item.html
> @@ -31,7 +31,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
>
> <body lang="en">
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="top">top</h1>
> +<h1 class="top" id="top"><span>top<a class="copiable-link" href='#top'>
> ¶</a></span></h1>
>
> <dl class="table">
> <dt><a class="index-entry-id" id="index-B"></a>
> diff --git
> a/tp/tests/formatting/res_parser/indices_in_begin_tables_lists/indices_in_begin_tables_lists.html
>
> b/tp/tests/formatting/res_parser/indices_in_begin_tables_lists/indices_in_begin_tables_lists.html
> index 27732b6106..69de79d540 100644
> ---
> a/tp/tests/formatting/res_parser/indices_in_begin_tables_lists/indices_in_begin_tables_lists.html
> +++
> b/tp/tests/formatting/res_parser/indices_in_begin_tables_lists/indices_in_begin_tables_lists.html
> @@ -39,7 +39,7 @@ ul.mark-minus {list-style-type: "\2212"}
> <p>
> [<a href="#printindex" title="Index" rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="top">top</h1>
> +<h1 class="top" id="top"><span>top<a class="copiable-link" href='#top'>
> ¶</a></span></h1>
>
> <ul class="mini-toc">
> <li><a href="#chapter" accesskey="1">chap</a></li>
> @@ -51,7 +51,7 @@ ul.mark-minus {list-style-type: "\2212"}
> <p>
> Next: <a href="#printindex" accesskey="n" rel="next">printindex</a>, Up :
> <a href="#Top" accesskey="u" rel="up">top</a> [<a href="#printindex"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="chap">1 chap</h2>
> +<h2 class="chapter" id="chap"><span>1 chap<a class="copiable-link"
> href='#chap'> ¶</a></span></h2>
>
> <ul class="itemize mark-minus">
> <li><a class="index-entry-id" id="index-also-a-cindex-in-itemize"></a>
> @@ -188,7 +188,7 @@ enum
> <p>
> Prev: <a href="#chapter" accesskey="p" rel="prev">chap</a>, Up : <a
> href="#Top" accesskey="u" rel="up">top</a> [<a href="#printindex"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="printindex-1">2 printindex</h2>
> +<h2 class="chapter" id="printindex-1"><span>2 printindex<a
> class="copiable-link" href='#printindex-1'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#printindex-1_cp_letter-A"><b>A</b></a>
> diff --git a/tp/tests/formatting/res_parser/no_content/no_content.html
> b/tp/tests/formatting/res_parser/no_content/no_content.html
> index 05fcf15932..785d395fa2 100644
> --- a/tp/tests/formatting/res_parser/no_content/no_content.html
> +++ b/tp/tests/formatting/res_parser/no_content/no_content.html
> @@ -14,6 +14,12 @@
>
> <link href="#Top" rel="start" title="Top">
> <link href="#chapter" rel="next" title="chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -24,7 +30,7 @@
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> </p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -38,7 +44,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> </p>
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> </p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git
> a/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
> b/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
> index 27a4e5a898..12eb83b83c 100644
> --- a/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
> +++ b/tp/tests/formatting/res_parser/no_content_do_contents/no_content.html
> @@ -17,6 +17,8 @@
> <link href="#chapter" rel="next" title="chapter">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> ul.toc-numbered-mark {list-style: none}
> -->
> </style>
> @@ -30,7 +32,7 @@ ul.toc-numbered-mark {list-style: none}
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -51,7 +53,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> [<a href=
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git
> a/tp/tests/formatting/res_parser/no_content_do_contents_inline/no_content.html
>
> b/tp/tests/formatting/res_parser/no_content_do_contents_inline/no_content.html
> index 05fcf15932..785d395fa2 100644
> ---
> a/tp/tests/formatting/res_parser/no_content_do_contents_inline/no_content.html
> +++
> b/tp/tests/formatting/res_parser/no_content_do_contents_inline/no_content.html
> @@ -14,6 +14,12 @@
>
> <link href="#Top" rel="start" title="Top">
> <link href="#chapter" rel="next" title="chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -24,7 +30,7 @@
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> </p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -38,7 +44,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> </p>
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> </p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git
> a/tp/tests/formatting/res_parser/no_content_do_contents_separate/no_content.html
>
> b/tp/tests/formatting/res_parser/no_content_do_contents_separate/no_content.html
> index f3a84400b4..9c3d85d070 100644
> ---
> a/tp/tests/formatting/res_parser/no_content_do_contents_separate/no_content.html
> +++
> b/tp/tests/formatting/res_parser/no_content_do_contents_separate/no_content.html
> @@ -17,6 +17,8 @@
> <link href="#chapter" rel="next" title="chapter">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> ul.toc-numbered-mark {list-style: none}
> -->
> </style>
> @@ -30,7 +32,7 @@ ul.toc-numbered-mark {list-style: none}
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -44,7 +46,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> [<a href=
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>]</p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git a/tp/tests/formatting/res_parser/no_content_inline/no_content.html
> b/tp/tests/formatting/res_parser/no_content_inline/no_content.html
> index 05fcf15932..785d395fa2 100644
> --- a/tp/tests/formatting/res_parser/no_content_inline/no_content.html
> +++ b/tp/tests/formatting/res_parser/no_content_inline/no_content.html
> @@ -14,6 +14,12 @@
>
> <link href="#Top" rel="start" title="Top">
> <link href="#chapter" rel="next" title="chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -24,7 +30,7 @@
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> </p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -38,7 +44,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> </p>
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> </p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git
> a/tp/tests/formatting/res_parser/no_content_separate/no_content.html
> b/tp/tests/formatting/res_parser/no_content_separate/no_content.html
> index 05fcf15932..785d395fa2 100644
> --- a/tp/tests/formatting/res_parser/no_content_separate/no_content.html
> +++ b/tp/tests/formatting/res_parser/no_content_separate/no_content.html
> @@ -14,6 +14,12 @@
>
> <link href="#Top" rel="start" title="Top">
> <link href="#chapter" rel="next" title="chapter">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
> @@ -24,7 +30,7 @@
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">Chapter 1</a> </p>
> </div>
> -<h1 class="top" id="No-ccontent">No ccontent</h1>
> +<h1 class="top" id="No-ccontent"><span>No ccontent<a class="copiable-link"
> href='#No-ccontent'> ¶</a></span></h1>
>
> <p>No content.
> </p>
> @@ -38,7 +44,7 @@ Next: <a href="#chapter" accesskey="n" rel="next">Chapter
> 1</a> </p>
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">No ccontent</a>, Up: <a
> href="#Top" accesskey="u" rel="up">No ccontent</a> </p>
> </div>
> -<h2 class="chapter" id="Chapter-1">1 Chapter 1</h2>
> +<h2 class="chapter" id="Chapter-1"><span>1 Chapter 1<a class="copiable-link"
> href='#Chapter-1'> ¶</a></span></h2>
>
> <p>The chapter
> </p>
> diff --git a/tp/tests/formatting/res_parser/simplest_test_css/simplest.html
> b/tp/tests/formatting/res_parser/simplest_test_css/simplest.html
> index b098207627..5e827d4e83 100644
> --- a/tp/tests/formatting/res_parser/simplest_test_css/simplest.html
> +++ b/tp/tests/formatting/res_parser/simplest_test_css/simplest.html
> @@ -25,6 +25,8 @@
>
> @import ("strange\" ;file") ;
>
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> @media tv { h3 {text-align: left} }
>
> -->
> @@ -36,13 +38,13 @@
> <body lang="en">
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="top-section">top section</h1>
> +<h1 class="top" id="top-section"><span>top section<a class="copiable-link"
> href='#top-section'> ¶</a></span></h1>
>
> <ul class="mini-toc">
> <li><a href="#Chapter" accesskey="1">Chapter</a></li>
> </ul>
> <div class="chapter-level-extent" id="Chapter">
> -<h2 class="chapter">1 Chapter</h2>
> +<h2 class="chapter"><span>1 Chapter<a class="copiable-link" href='#Chapter'>
> ¶</a></span></h2>
>
> <p>This is a very simple texi manual <>.
> </p>
> diff --git
> a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
> b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
> index e2da0d8298..2d0e91f14f 100644
> --- a/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_enable_encoding/formatting.html
> @@ -1827,15 +1827,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym ,
> <small class="enddots">...</small>)
> @@ -2920,15 +2920,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym ,
> <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#chapter" rel="index"
> accesskey="1">chapter</a>:</td><td> </td><td
> class="menu-entry-description">chapter
> @@ -3160,7 +3160,7 @@ Menu comment
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4087,15 +4087,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym ,
> <small class="enddots">...</small>)
> @@ -5178,15 +5178,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym ,
> <small class="enddots">...</small>)
> @@ -7259,7 +7259,7 @@ Menu comment
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#subsection"
> accesskey="1">subsection</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -7280,7 +7280,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_Cont
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="1">subsubsection ``simple-double--</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -7296,7 +7296,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a> [<
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a href="#subsection"
> accesskey="u" rel="up">subsection</a> [<a href="#SEC_Contents" title="Table
> of contents" rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7305,7 +7305,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7317,7 +7317,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to: </th><td><a
> class="summary-letter-printindex" href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
> b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
> index d88c8b1ee7..c9fd17457e 100644
> --- a/tp/tests/layout/res_parser/formatting_exotic/chapter.html
> +++ b/tp/tests/layout/res_parser/formatting_exotic/chapter.html
> @@ -911,7 +911,7 @@ ul.mark-none {list-style-type: none}
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> -<h1 class="chapter" id="chapter-1"><a
> href="formatting_toc.html#toc-chapter-1">chapter</a></h1>
> +<h1 class="chapter" id="chapter-1"><span><a
> href="formatting_toc.html#toc-chapter-1">chapter</a><a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h1>
>
> <p>First para
> </p>
> @@ -1838,15 +1838,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading">majorheading</h1>
> +<h1 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading">chapheading</h1>
> +<h1 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading">heading</h2>
> +<h2 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading">subheading</h3>
> +<h3 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2929,15 +2929,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> diff --git a/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
> b/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
> index 2d7d7a6f12..2365504aff 100644
> --- a/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
> +++ b/tp/tests/layout/res_parser/formatting_exotic/chapter2.html
> @@ -859,9 +859,11 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> a.summary-letter-printindex {text-decoration: none}
> h1.centerchap {text-align:center}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> td.index-entry-level-1 {padding-left: 1.5em}
> td.index-entry-level-2 {padding-left: 3.0em}
> td.printindex-index-entry {vertical-align: top}
> @@ -893,7 +895,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <td>[<a href="chapter.html" title="Index">Index</a>]</td>
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> -<h1 class="centerchap" id="chapter-2"><a
> href="formatting_toc.html#toc-chapter-2">chapter 2</a></h1>
> +<h1 class="centerchap" id="chapter-2"><span><a
> href="formatting_toc.html#toc-chapter-2">chapter 2</a><a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_exotic/index.html
> b/tp/tests/layout/res_parser/formatting_exotic/index.html
> index 23b421ed88..debc60d858 100644
> --- a/tp/tests/layout/res_parser/formatting_exotic/index.html
> +++ b/tp/tests/layout/res_parser/formatting_exotic/index.html
> @@ -859,7 +859,9 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> -->
> </style>
> <link rel="stylesheet" type="text/css"
> href="http://www.environnement.ens.fr/perso/dumas/background-color.css">
> @@ -885,7 +887,7 @@ span.program-in-footer {font-size: smaller}
> <td>[<a href="chapter.html" title="Index">Index</a>]</td>
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> -<h1 class="top" id="Top-section"><a
> href="formatting_toc.html#toc-Top-section">Top section</a></h1>
> +<h1 class="top" id="Top-section"><span><a
> href="formatting_toc.html#toc-Top-section">Top section</a><a
> class="copiable-link" href='#Top-section'> ¶</a></span></h1>
>
>
>
> diff --git
> a/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
> b/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
> index 4ba6056d94..9cdfa9cf6a 100644
> --- a/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
> +++ b/tp/tests/layout/res_parser/formatting_exotic/s_002d_002dect_002cion.html
> @@ -859,7 +859,9 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> -->
> </style>
> <link rel="stylesheet" type="text/css"
> href="http://www.environnement.ens.fr/perso/dumas/background-color.css">
> @@ -884,23 +886,23 @@ span.program-in-footer {font-size: smaller}
> <td>[<a href="chapter.html" title="Index">Index</a>]</td>
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> -<h2 class="section" id="A-section"><a
> href="formatting_toc.html#toc-A-section">A section</a></h2>
> +<h2 class="section" id="A-section"><span><a
> href="formatting_toc.html#toc-A-section">A section</a><a
> class="copiable-link" href='#A-section'> ¶</a></span></h2>
>
>
> <hr>
> <div class="subsection-level-extent" id="subsection">
> -<h3 class="subsection" id="subsection-1"><a
> href="formatting_toc.html#toc-subsection-1">subsection</a></h3>
> +<h3 class="subsection" id="subsection-1"><span><a
> href="formatting_toc.html#toc-subsection-1">subsection</a><a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h3>
>
>
> <a class="anchor" id="anchor"></a>
> <hr>
> <div class="subsubsection-level-extent"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d">
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><a
> href="formatting_toc.html#toc-subsubsection-_0060_0060simple_002ddouble_002d_002d-1">subsubsection
> “simple-double–</a></h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span><a
> href="formatting_toc.html#toc-subsubsection-_0060_0060simple_002ddouble_002d_002d-1">subsubsection
> “simple-double–</a><a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> <div class="subsubsection-level-extent"
> id="subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><a
> href="formatting_toc.html#toc-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">three—four—-”</a></h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span><a
> href="formatting_toc.html#toc-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">three—four—-”</a><a
> class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> </div>
> </div>
> diff --git a/tp/tests/layout/res_parser/formatting_fr/formatting.html
> b/tp/tests/layout/res_parser/formatting_fr/formatting.html
> index 08d2c9b346..7416d72c50 100644
> --- a/tp/tests/layout/res_parser/formatting_fr/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_fr/formatting.html
> @@ -1823,15 +1823,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading">majorheading</h1>
> +<h1 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading">chapheading</h1>
> +<h1 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading">heading</h2>
> +<h2 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading">subheading</h3>
> +<h3 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2916,15 +2916,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#chapter" rel="index">1
> chapter</a></td><td> </td><td
> class="menu-entry-description"></td></tr>
> @@ -3139,7 +3139,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="chapter" id="chapter-1">1 chapter</h1>
> +<h1 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h1>
>
> <p>First para
> </p>
> @@ -4066,15 +4066,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5157,15 +5157,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-2">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-2">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-2">heading</h2>
> +<h2 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-2">subheading</h3>
> +<h3 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7249,7 +7249,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h2 class="section" id="A-section">1.1 A section</h2>
> +<h2 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#subsection">1.1.1
> subsection</a></td><td> </td><td class="menu-entry-description">
> @@ -7281,7 +7281,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h3 class="subsection" id="subsection-1">1.1.1 subsection</h3>
> +<h3 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d">1.1.1.1
> subsubsection “simple-double–</a></td><td> </td><td
> class="menu-entry-description">
> @@ -7308,7 +7308,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7328,7 +7328,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7351,7 +7351,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="centerchap" id="chapter-2">chapter 2</h1>
> +<h1 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Aller à:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
> b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
> index c691890d5e..867cf092ff 100644
> --- a/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_fr_icons/formatting.html
> @@ -1823,15 +1823,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading">majorheading</h1>
> +<h1 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading">chapheading</h1>
> +<h1 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading">heading</h2>
> +<h2 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading">subheading</h3>
> +<h3 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2916,15 +2916,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#chapter" rel="index">1
> chapter</a></td><td> </td><td
> class="menu-entry-description"></td></tr>
> @@ -3139,7 +3139,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h1 class="chapter" id="chapter-1">1 chapter</h1>
> +<h1 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h1>
>
> <p>First para
> </p>
> @@ -4066,15 +4066,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5157,15 +5157,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-2">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-2">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-2">heading</h2>
> +<h2 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-2">subheading</h3>
> +<h3 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7249,7 +7249,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h2 class="section" id="A-section">1.1 A section</h2>
> +<h2 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#subsection">1.1.1
> subsection</a></td><td> </td><td class="menu-entry-description">
> @@ -7281,7 +7281,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h3 class="subsection" id="subsection-1">1.1.1 subsection</h3>
> +<h3 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d">1.1.1.1
> subsubsection “simple-double–</a></td><td> </td><td
> class="menu-entry-description">
> @@ -7308,7 +7308,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7328,7 +7328,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7351,7 +7351,7 @@ Menu comment
> <td><a href="#chapter" title="Index"><img src="a_index.png" border="0"
> alt="Index: 1 chapter" align="middle"></a></td>
> <td><a href="#SEC_About" title="About (help)"><img src="a_help.png"
> border="0" alt="About: About This Document" align="middle"></a></td>
> </tr></table>
> -<h1 class="centerchap" id="chapter-2">chapter 2</h1>
> +<h1 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Aller à:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
> b/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
> index a079ae4d94..85d20fb78c 100644
> --- a/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_inline_css/formatting.html
> @@ -1787,15 +1787,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2880,15 +2880,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3069,7 +3069,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination" style="vertical-align: top">• <a
> href="#chapter" rel="index"
> accesskey="1">chapter</a>:</td><td> </td><td
> class="menu-entry-description" style="vertical-align: top">chapter
> @@ -3089,7 +3089,7 @@ Menu comment
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4016,15 +4016,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5107,15 +5107,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7188,7 +7188,7 @@ Menu comment
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#A-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination" style="vertical-align: top">• <a
> href="#subsection" accesskey="1">subsection</a>:</td><td> </td><td
> class="menu-entry-description" style="vertical-align: top">
> @@ -7209,7 +7209,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" style="visibility: hidden; text-decoration: none;
> line-height: 0em" href='#subsection-1'> ¶</a></span></h4>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination" style="vertical-align: top">• <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="1">subsubsection
> ``simple-double--</a>:</td><td> </td><td
> class="menu-entry-description" style="vertical-align: top">
> @@ -7225,7 +7225,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> style="visibility: hidden; text-decoration: none; line-height: 0em"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7234,7 +7234,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link" style="visibility:
> hidden; text-decoration: none; line-height: 0em"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7246,7 +7246,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h2 class="centerchap" style="text-align:center" id="chapter-2">chapter
> 2</h2>
> +<h2 class="centerchap" style="text-align:center"
> id="chapter-2"><span>chapter 2<a class="copiable-link" style="visibility:
> hidden; text-decoration: none; line-height: 0em" href='#chapter-2'>
> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex" style="text-decoration: none"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
> b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
> index 825e20a0e0..a536b0ca53 100644
> --- a/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_mathjax/formatting.html
> @@ -1826,15 +1826,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2917,15 +2917,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3106,7 +3106,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
>
>
> @@ -3147,7 +3147,7 @@ Next: <a href="#chapter" accesskey="n"
> rel="next">chapter</a> [<a href="#
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4072,15 +4072,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5161,15 +5161,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7232,7 +7232,7 @@ Invalid use of @':
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> <ul class="mini-toc">
> @@ -7244,7 +7244,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> @@ -7258,7 +7258,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7267,7 +7267,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7279,7 +7279,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git
> a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
> b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
> index 15822281bb..8b7d294287 100644
> --- a/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_numerical_entities/formatting.html
> @@ -1827,15 +1827,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an
> accronym , <small class="enddots">...</small>)
> @@ -2920,15 +2920,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an
> accronym , <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a>   [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#chapter"
> rel="index" accesskey="1">chapter</a>:</td><td>  </td><td
> class="menu-entry-description">chapter
> @@ -3160,7 +3160,7 @@ Menu comment
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a>   [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4087,15 +4087,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an
> accronym , <small class="enddots">...</small>)
> @@ -5178,15 +5178,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an
> accronym , <small class="enddots">...</small>)
> @@ -7259,7 +7259,7 @@ Menu comment
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a>   [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#subsection"
> accesskey="1">subsection</a>:</td><td>  </td><td
> class="menu-entry-description">
> @@ -7280,7 +7280,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a>   [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
>   [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="1">subsubsection
> ``simple-double--</a>:</td><td>  </td><td
> class="menu-entry-description">
> @@ -7296,7 +7296,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a>   [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7305,7 +7305,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a>   [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7317,7 +7317,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a>   [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:  
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git
> a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
> b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
> index a0d7921ea8..cd1b776901 100644
> ---
> a/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
> +++
> b/tp/tests/layout/res_parser/formatting_sort_element_counts/formatting.html
> @@ -910,7 +910,7 @@ ul.toc-numbered-mark {list-style: none}
> <p>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
>
>
> @@ -951,7 +951,7 @@ ul.toc-numbered-mark {list-style: none}
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Up : <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -1878,15 +1878,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2969,15 +2969,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5042,7 +5042,7 @@ Invalid use of @':
> <p>
> Up : <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
>
> <ul class="mini-toc">
> @@ -5054,7 +5054,7 @@ Invalid use of @':
> <p>
> Up : <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
>
> <a class="anchor" id="anchor"></a>
> @@ -5068,7 +5068,7 @@ Invalid use of @':
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up : <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -5077,7 +5077,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Prev: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up :
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -5089,7 +5089,7 @@ Prev: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accesskey="
> <p>
> Prev: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up : <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
> b/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
> index d0af5f368c..f30f8ac203 100644
> --- a/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_texi2html/formatting.html
> @@ -1823,15 +1823,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading">majorheading</h1>
> +<h1 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading">chapheading</h1>
> +<h1 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading">heading</h2>
> +<h2 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading">subheading</h3>
> +<h3 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2916,15 +2916,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#chapter" rel="index">1
> chapter</a></td><td> </td><td
> class="menu-entry-description"></td></tr>
> @@ -3139,7 +3139,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="chapter" id="chapter-1">1 chapter</h1>
> +<h1 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h1>
>
> <p>First para
> </p>
> @@ -4066,15 +4066,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5157,15 +5157,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-2">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-2">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-2">heading</h2>
> +<h2 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-2">subheading</h3>
> +<h3 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7249,7 +7249,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h2 class="section" id="A-section">1.1 A section</h2>
> +<h2 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="#subsection">1.1.1
> subsection</a></td><td> </td><td class="menu-entry-description">
> @@ -7281,7 +7281,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h3 class="subsection" id="subsection-1">1.1.1 subsection</h3>
> +<h3 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d">1.1.1.1
> subsubsection “simple-double–</a></td><td> </td><td
> class="menu-entry-description">
> @@ -7308,7 +7308,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7328,7 +7328,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7351,7 +7351,7 @@ Menu comment
> <td>[<a href="#chapter" title="Index">Index</a>]</td>
> <td>[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
> </tr></table>
> -<h1 class="centerchap" id="chapter-2">chapter 2</h1>
> +<h1 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
> index 7effa9b7a7..666650e6cb 100644
> --- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
> +++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter.html
> @@ -912,7 +912,7 @@ ul.mark-none {list-style-type: none}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h1 class="chapter" id="chapter-1">1 chapter</h1>
> +<h1 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h1>
>
> <p>First para
> </p>
> @@ -1839,15 +1839,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2930,15 +2930,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-2">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-2">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-2">heading</h2>
> +<h2 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-2">subheading</h3>
> +<h3 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter2.html
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter2.html
> index 57174cc1a9..26dca5db05 100644
> --- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter2.html
> +++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/chapter2.html
> @@ -859,9 +859,11 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> a.summary-letter-printindex {text-decoration: none}
> h1.centerchap {text-align:center}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> td.index-entry-level-1 {padding-left: 1.5em}
> td.index-entry-level-2 {padding-left: 3.0em}
> td.printindex-index-entry {vertical-align: top}
> @@ -893,7 +895,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h1 class="centerchap" id="chapter-2">chapter 2</h1>
> +<h1 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter-2_cp_symbol-1"><b>-</b></a>
> diff --git a/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
> index 01e346bce7..7cf5f0306d 100644
> --- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
> +++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/index.html
> @@ -1809,15 +1809,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading">majorheading</h1>
> +<h1 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading">chapheading</h1>
> +<h1 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading">heading</h2>
> +<h2 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading">subheading</h3>
> +<h3 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2902,15 +2902,15 @@ html ''
>
>
>
> -<h1 class="majorheading" id="majorheading-1">majorheading</h1>
> +<h1 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h1>
>
> -<h1 class="chapheading" id="chapheading-1">chapheading</h1>
> +<h1 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h1>
>
> -<h2 class="heading" id="heading-1">heading</h2>
> +<h2 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h2>
>
> -<h3 class="subheading" id="subheading-1">subheading</h3>
> +<h3 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h3>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3096,7 +3096,7 @@ html ''
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="chapter.html" rel="index">1
> chapter</a></td><td> </td><td
> class="menu-entry-description"></td></tr>
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/s_002d_002dect_002cion.html
>
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/s_002d_002dect_002cion.html
> index 905bee3907..d4b0f978f7 100644
> ---
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/s_002d_002dect_002cion.html
> +++
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/s_002d_002dect_002cion.html
> @@ -859,8 +859,10 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> pre.menu-comment-preformatted {font-family: serif}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> th.menu-comment {text-align:left}
> @@ -888,7 +890,7 @@ th.menu-comment {text-align:left}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h2 class="section" id="A-section">1.1 A section</h2>
> +<h2 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a href="subsection.html">1.1.1
> subsection</a></td><td> </td><td class="menu-entry-description">
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsection.html
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsection.html
> index f14bac00e8..5d64798c98 100644
> --- a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsection.html
> +++ b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsection.html
> @@ -859,7 +859,9 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> -->
> @@ -886,7 +888,7 @@ td.menu-entry-destination {vertical-align: top}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h3 class="subsection" id="subsection-1">1.1.1 subsection</h3>
> +<h3 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination"><a
> href="subsubsection-_0060_0060simple_002ddouble_002d_002d.html">1.1.1.1
> subsubsection “simple-double–</a></td><td> </td><td
> class="menu-entry-description">
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
>
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> index 7e24d0bee0..466e6701c0 100644
> ---
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> +++
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-_0060_0060simple_002ddouble_002d_002d.html
> @@ -859,7 +859,9 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> -->
> </style>
>
> @@ -884,7 +886,7 @@ span.program-in-footer {font-size: smaller}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> </div>
> <hr>
> diff --git
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
>
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> index cbfdf4a4be..43f3a32524 100644
> ---
> a/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> +++
> b/tp/tests/layout/res_parser/formatting_texi2html_nodes/subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027.html
> @@ -859,7 +859,9 @@ g-roupe
>
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> span.program-in-footer {font-size: smaller}
> +span:hover a.copiable-link {visibility: visible}
> -->
> </style>
>
> @@ -884,7 +886,7 @@ span.program-in-footer {font-size: smaller}
> <td>[<a href="formatting_abt.html#SEC_About" title="About (help)"> ?
> </a>]</td>
> </tr></table>
> <hr>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> </div>
> <hr>
> diff --git
> a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
> b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
> index 334f633644..04f9159335 100644
> --- a/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
> +++ b/tp/tests/layout/res_parser/formatting_weird_quotes/formatting.html
> @@ -1827,15 +1827,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading">majorheading</h2>
> +<h2 class="majorheading" id="majorheading"><span>majorheading<a
> class="copiable-link" href='#majorheading'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading">chapheading</h2>
> +<h2 class="chapheading" id="chapheading"><span>chapheading<a
> class="copiable-link" href='#chapheading'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading">heading</h3>
> +<h3 class="heading" id="heading"><span>heading<a class="copiable-link"
> href='#heading'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading"><span>subsubheading<a
> class="copiable-link" href='#subsubheading'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -2920,15 +2920,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -3109,7 +3109,7 @@ html ''
> <p>
> Next: <a href="#chapter" accesskey="n" rel="next">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h1 class="top" id="Top-section">Top section</h1>
> +<h1 class="top" id="Top-section"><span>Top section<a class="copiable-link"
> href='#Top-section'> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#chapter" rel="index"
> accesskey="1">chapter</a>:</td><td> </td><td
> class="menu-entry-description">chapter
> @@ -3160,7 +3160,7 @@ Menu comment
> <p>
> Next: <a href="#chapter2" accesskey="n" rel="next">chapter 2</a>, Previous:
> <a href="#Top" accesskey="p" rel="prev">Top section</a>, Up: <a href="#Top"
> accesskey="u" rel="up">Top section</a> [<a href="#SEC_Contents"
> title="Table of contents" rel="contents">Contents</a>][<a href="#chapter"
> title="Index" rel="index">Index</a>][<a href="#SEC_About" title="About
> (help)" rel="help"> ? </a>]</p>
> </div>
> -<h2 class="chapter" id="chapter-1">1 chapter</h2>
> +<h2 class="chapter" id="chapter-1"><span>1 chapter<a class="copiable-link"
> href='#chapter-1'> ¶</a></span></h2>
>
> <p>First para
> </p>
> @@ -4087,15 +4087,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-1">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-1"><span>majorheading<a
> class="copiable-link" href='#majorheading-1'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-1">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-1"><span>chapheading<a
> class="copiable-link" href='#chapheading-1'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-1">heading</h3>
> +<h3 class="heading" id="heading-1"><span>heading<a class="copiable-link"
> href='#heading-1'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-1">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-1"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-1'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -5178,15 +5178,15 @@ html ''
>
>
>
> -<h2 class="majorheading" id="majorheading-2">majorheading</h2>
> +<h2 class="majorheading" id="majorheading-2"><span>majorheading<a
> class="copiable-link" href='#majorheading-2'> ¶</a></span></h2>
>
> -<h2 class="chapheading" id="chapheading-2">chapheading</h2>
> +<h2 class="chapheading" id="chapheading-2"><span>chapheading<a
> class="copiable-link" href='#chapheading-2'> ¶</a></span></h2>
>
> -<h3 class="heading" id="heading-2">heading</h3>
> +<h3 class="heading" id="heading-2"><span>heading<a class="copiable-link"
> href='#heading-2'> ¶</a></span></h3>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> -<h4 class="subsubheading" id="subsubheading-2">subsubheading</h4>
> +<h4 class="subsubheading" id="subsubheading-2"><span>subsubheading<a
> class="copiable-link" href='#subsubheading-2'> ¶</a></span></h4>
>
>
> <p><code class="code">@acronym{--a,an accronym @comma{} @enddots{}}</code>
> <abbr class="acronym" title="an accronym , ...">–a</abbr> (an accronym
> , <small class="enddots">...</small>)
> @@ -7259,7 +7259,7 @@ Menu comment
> <p>
> Up: <a href="#chapter" accesskey="u" rel="up">chapter</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h3 class="section" id="A-section">1.1 A section</h3>
> +<h3 class="section" id="A-section"><span>1.1 A section<a
> class="copiable-link" href='#A-section'> ¶</a></span></h3>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#subsection"
> accesskey="1">subsection</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -7280,7 +7280,7 @@ Up: <a href="#chapter" accesskey="u"
> rel="up">chapter</a> [<a href="#SEC_
> <p>
> Up: <a href="#s_002d_002dect_002cion" accesskey="u" rel="up">A section</a>
> [<a href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsection" id="subsection-1">1.1.1 subsection</h4>
> +<h4 class="subsection" id="subsection-1"><span>1.1.1 subsection<a
> class="copiable-link" href='#subsection-1'> ¶</a></span></h4>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="1">subsubsection
> ``simple-double--</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -7296,7 +7296,7 @@ Up: <a href="#s_002d_002dect_002cion" accesskey="u"
> rel="up">A section</a>  
> <p>
> Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"
> accesskey="n" rel="next">three—four—-”</a>, Up: <a
> href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1">1.1.1.1
> subsubsection “simple-double–</h4>
> +<h4 class="subsubsection"
> id="subsubsection-_0060_0060simple_002ddouble_002d_002d-1"><span>1.1.1.1
> subsubsection “simple-double–<a class="copiable-link"
> href='#subsubsection-_0060_0060simple_002ddouble_002d_002d-1'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7305,7 +7305,7 @@ Next: <a
> href="#subsubsection-three_002d_002d_002dfour_002d_002d_002d_002d_0027_
> <p>
> Previous: <a href="#subsubsection-_0060_0060simple_002ddouble_002d_002d"
> accesskey="p" rel="prev">subsubsection “simple-double–</a>, Up:
> <a href="#subsection" accesskey="u" rel="up">subsection</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027">1.1.1.2
> three—four—-”</h4>
> +<h4 class="subsubsection"
> id="three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027"><span>1.1.1.2
> three—four—-”<a class="copiable-link"
> href='#three_002d_002d_002dfour_002d_002d_002d_002d_0027_0027'>
> ¶</a></span></h4>
>
> <hr>
> </div>
> @@ -7317,7 +7317,7 @@ Previous: <a
> href="#subsubsection-_0060_0060simple_002ddouble_002d_002d" accessk
> <p>
> Previous: <a href="#chapter" accesskey="p" rel="prev">chapter</a>, Up: <a
> href="#Top" accesskey="u" rel="up">Top section</a> [<a
> href="#SEC_Contents" title="Table of contents"
> rel="contents">Contents</a>][<a href="#chapter" title="Index"
> rel="index">Index</a>][<a href="#SEC_About" title="About (help)" rel="help">
> ? </a>]</p>
> </div>
> -<h2 class="centerchap" id="chapter-2">chapter 2</h2>
> +<h2 class="centerchap" id="chapter-2"><span>chapter 2<a
> class="copiable-link" href='#chapter-2'> ¶</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to:
> </th><td><a class="summary-letter-printindex"
> href="#chapter2_cp_symbol-1"><b>-</b></a>
> diff --git
> a/tp/tests/many_input_files/different_encodings_res/char_latin1_latin1_in_refs.html
>
> b/tp/tests/many_input_files/different_encodings_res/char_latin1_latin1_in_refs.html
> index b663ebbdd7..6bc8cb1f73 100644
> ---
> a/tp/tests/many_input_files/different_encodings_res/char_latin1_latin1_in_refs.html
> +++
> b/tp/tests/many_input_files/different_encodings_res/char_latin1_latin1_in_refs.html
> @@ -17,7 +17,9 @@
> <link
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> rel="next" title="? ? ? ? ? ? ? ? ? ? ?">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> a.summary-letter-printindex {text-decoration: none}
> +span:hover a.copiable-link {visibility: visible}
> td.printindex-index-entry {vertical-align: top}
> td.printindex-index-section {vertical-align: top; padding-left: 1em}
> th.entries-header-printindex {text-align:left}
> @@ -35,7 +37,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <p>
> Next: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> accesskey="n" rel="next">? ? ? ? ? ? ? ? ? ? ?</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="char-latin1-latin1-in-refs">char latin1 latin1 in
> refs</h1>
> +<h1 class="top" id="char-latin1-latin1-in-refs"><span>char latin1 latin1 in
> refs<a class="copiable-link" href='#char-latin1-latin1-in-refs'>
> ?</a></span></h1>
>
>
> <ul class="mini-toc">
> @@ -51,7 +53,7 @@ Next: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_
> <p>
> Next: <a href="#g_t_00e9" accesskey="n" rel="next">?</a>, Previous: <a
> href="#Top" accesskey="p" rel="prev">char latin1 latin1 in refs</a>, Up: <a
> href="#Top" accesskey="u" rel="up">char latin1 latin1 in refs</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-i-o-u-y-A-E-I-O-U">1 ? ? ? ? ? ? ? ? ? ? ?</h2>
> +<h2 class="chapter" id="a-e-i-o-u-y-A-E-I-O-U"><span>1 ? ? ? ? ? ? ? ? ? ?
> ?<a class="copiable-link" href='#a-e-i-o-u-y-A-E-I-O-U'> ?</a></span></h2>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to: ? </th><td><a
> class="summary-letter-printindex"
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc_cp_letter-A"><b>A</b></a>
> @@ -93,7 +95,7 @@ Next: <a href="#g_t_00e9" accesskey="n" rel="next">
> <p>
> Next: <a href="#g_t_00e0-_00e8-_00f9" accesskey="n" rel="next">? ? ?</a>,
> Previous: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> accesskey="p" rel="prev">? ? ? ? ? ? ? ? ? ? ?</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 latin1 in refs</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="e">2 ?</h2>
> +<h2 class="chapter" id="e"><span>2 ?<a class="copiable-link" href='#e'>
> ?</a></span></h2>
>
> <hr>
> </div>
> @@ -102,7 +104,7 @@ Next: <a href="#g_t_00e0-_00e8-_00f9" accesskey="n"
> rel="next">
> <p>
> Next: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> accesskey="n" rel="next">? ? ? ? ? ? ? ? ? ?</a>, Previous: <a
> href="#g_t_00e9" accesskey="p" rel="prev">?</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 latin1 in refs</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-u">3 ? ? ?</h2>
> +<h2 class="chapter" id="a-e-u"><span>3 ? ? ?<a class="copiable-link"
> href='#a-e-u'> ?</a></span></h2>
>
> <hr>
> </div>
> @@ -111,7 +113,7 @@ Next: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> <p>
> Next: <a href="#g_t_00e7" accesskey="n" rel="next">?</a>, Previous: <a
> href="#g_t_00e0-_00e8-_00f9" accesskey="p" rel="prev">? ? ?</a>, Up: <a
> href="#Top" accesskey="u" rel="up">char latin1 latin1 in refs</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-i-o-u-A-E-I-O-U">4 ? ? ? ? ? ? ? ? ? ?</h2>
> +<h2 class="chapter" id="a-e-i-o-u-A-E-I-O-U"><span>4 ? ? ? ? ? ? ? ? ? ?<a
> class="copiable-link" href='#a-e-i-o-u-A-E-I-O-U'> ?</a></span></h2>
>
> <hr>
> </div>
> @@ -120,7 +122,7 @@ Next: <a href="#g_t_00e7" accesskey="n" rel="next">
> <p>
> Previous: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> accesskey="p" rel="prev">? ? ? ? ? ? ? ? ? ?</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 latin1 in refs</a> ? [<a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="c">5 ?</h2>
> +<h2 class="chapter" id="c"><span>5 ?<a class="copiable-link" href='#c'>
> ?</a></span></h2>
>
> <p><a class="ref"
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc">?
> ? ? ? ? ? ? ? ? ? ?</a>
> <a class="ref" href="#g_t_00e9">?</a>
> diff --git
> a/tp/tests/many_input_files/different_encodings_res/char_latin1_utf8_in_refs.html
>
> b/tp/tests/many_input_files/different_encodings_res/char_latin1_utf8_in_refs.html
> index 9c9b0df778..95bce6fae9 100644
> ---
> a/tp/tests/many_input_files/different_encodings_res/char_latin1_utf8_in_refs.html
> +++
> b/tp/tests/many_input_files/different_encodings_res/char_latin1_utf8_in_refs.html
> @@ -17,7 +17,9 @@
> <link
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> rel="next" title="ä ë ï ö ü ÿ Ä Ë Ï Ö Ü">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> a.summary-letter-printindex {text-decoration: none}
> +span:hover a.copiable-link {visibility: visible}
> td.printindex-index-entry {vertical-align: top}
> td.printindex-index-section {vertical-align: top; padding-left: 1em}
> th.entries-header-printindex {text-align:left}
> @@ -35,7 +37,7 @@ th.sections-header-printindex {text-align:left;
> padding-left: 1em}
> <p>
> Next: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> accesskey="n" rel="next">ä ë ï ö ü ÿ Ä Ë Ï Ö Ü</a> [<a href="#Top"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h1 class="top" id="char-latin1-utf8-in-refs">char latin1 utf8 in refs</h1>
> +<h1 class="top" id="char-latin1-utf8-in-refs"><span>char latin1 utf8 in
> refs<a class="copiable-link" href='#char-latin1-utf8-in-refs'>
> ¶</a></span></h1>
>
> <div class="printindex cp-printindex">
> <table class="cp-letters-header-printindex"><tr><th>Jump to: </th><td><a
> class="summary-letter-printindex" href="#Top_cp_letter-A"><b>A</b></a>
> @@ -84,7 +86,7 @@ Next: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_
> <p>
> Next: <a href="#g_t_00e9" accesskey="n" rel="next">é</a>, Previous: <a
> href="#Top" accesskey="p" rel="prev">char latin1 utf8 in refs</a>, Up: <a
> href="#Top" accesskey="u" rel="up">char latin1 utf8 in refs</a> [<a
> href="#Top" title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-i-o-u-y-A-E-I-O-U">1 ä ë ï ö ü ÿ Ä Ë Ï Ö Ü</h2>
> +<h2 class="chapter" id="a-e-i-o-u-y-A-E-I-O-U"><span>1 ä ë ï ö ü ÿ Ä Ë Ï Ö
> Ü<a class="copiable-link" href='#a-e-i-o-u-y-A-E-I-O-U'> ¶</a></span></h2>
>
> <hr>
> </div>
> @@ -93,7 +95,7 @@ Next: <a href="#g_t_00e9" accesskey="n" rel="next">é</a>,
> Previous: <a href="#T
> <p>
> Next: <a href="#g_t_00e0-_00e8-_00f9" accesskey="n" rel="next">à è ù</a>,
> Previous: <a
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc"
> accesskey="p" rel="prev">ä ë ï ö ü ÿ Ä Ë Ï Ö Ü</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 utf8 in refs</a> [<a href="#Top"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="e">2 é</h2>
> +<h2 class="chapter" id="e"><span>2 é<a class="copiable-link" href='#e'>
> ¶</a></span></h2>
>
> <hr>
> </div>
> @@ -102,7 +104,7 @@ Next: <a href="#g_t_00e0-_00e8-_00f9" accesskey="n"
> rel="next">à è ù</a>, Pre
> <p>
> Next: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> accesskey="n" rel="next">â ê î ô û Â Ê Î Ô Û</a>, Previous: <a
> href="#g_t_00e9" accesskey="p" rel="prev">é</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 utf8 in refs</a> [<a href="#Top"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-u">3 à è ù</h2>
> +<h2 class="chapter" id="a-e-u"><span>3 à è ù<a class="copiable-link"
> href='#a-e-u'> ¶</a></span></h2>
>
> <hr>
> </div>
> @@ -111,7 +113,7 @@ Next: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> <p>
> Next: <a href="#g_t_00e7" accesskey="n" rel="next">ç</a>, Previous: <a
> href="#g_t_00e0-_00e8-_00f9" accesskey="p" rel="prev">à è ù</a>, Up: <a
> href="#Top" accesskey="u" rel="up">char latin1 utf8 in refs</a> [<a
> href="#Top" title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="a-e-i-o-u-A-E-I-O-U">4 â ê î ô û Â Ê Î Ô Û</h2>
> +<h2 class="chapter" id="a-e-i-o-u-A-E-I-O-U"><span>4 â ê î ô û Â Ê Î Ô Û<a
> class="copiable-link" href='#a-e-i-o-u-A-E-I-O-U'> ¶</a></span></h2>
>
> <hr>
> </div>
> @@ -120,7 +122,7 @@ Next: <a href="#g_t_00e7" accesskey="n" rel="next">ç</a>,
> Previous: <a href="#g
> <p>
> Previous: <a
> href="#g_t_00e2-_00ea-_00ee-_00f4-_00fb-_00c2-_00ca-_00ce-_00d4-_00db"
> accesskey="p" rel="prev">â ê î ô û Â Ê Î Ô Û</a>, Up: <a href="#Top"
> accesskey="u" rel="up">char latin1 utf8 in refs</a> [<a href="#Top"
> title="Index" rel="index">Index</a>]</p>
> </div>
> -<h2 class="chapter" id="c">5 ç</h2>
> +<h2 class="chapter" id="c"><span>5 ç<a class="copiable-link" href='#c'>
> ¶</a></span></h2>
>
> <p><a class="ref"
> href="#g_t_00e4-_00eb-_00ef-_00f6-_00fc-_00ff-_00c4-_00cb-_00cf-_00d6-_00dc">ä
> ë ï ö ü ÿ Ä Ë Ï Ö Ü</a>
> <a class="ref" href="#g_t_00e9">é</a>
> diff --git
> a/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_fr.html
>
> b/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_fr.html
> index f328decc51..19b0d754cd 100644
> ---
> a/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_fr.html
> +++
> b/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_fr.html
> @@ -16,7 +16,9 @@
> <link href="#chap" rel="next" title="chap">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> pre.menu-comment-preformatted {font-family: serif}
> +span:hover a.copiable-link {visibility: visible}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> th.menu-comment {text-align:left}
> @@ -33,7 +35,7 @@ th.menu-comment {text-align:left}
> <p>
> Next: <a href="#chap" accesskey="n" rel="next">chap</a> </p>
> </div>
> -<h1 class="top" id="max">max</h1>
> +<h1 class="top" id="max"><span>max<a class="copiable-link" href='#max'>
> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#chap"
> accesskey="1">chap</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -54,7 +56,7 @@ chap
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">max</a>, Up: <a
> href="#Top" accesskey="u" rel="up">max</a> </p>
> </div>
> -<h2 class="chapter" id="chap-1">1 chap</h2>
> +<h2 class="chapter" id="chap-1"><span>1 chap<a class="copiable-link"
> href='#chap-1'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#section"
> accesskey="1">section</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -67,7 +69,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">max</a>,
> Up: <a href="#Top" ac
> <p>
> Up: <a href="#chap" accesskey="u" rel="up">chap</a> </p>
> </div>
> -<h3 class="section" id="sec">1.1 sec</h3>
> +<h3 class="section" id="sec"><span>1.1 sec<a class="copiable-link"
> href='#sec'> ¶</a></span></h3>
> </div>
> </div>
> </div>
> diff --git
> a/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_no_documentlanguage.html
>
> b/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_no_documentlanguage.html
> index f8acb86b03..63ed88d6f2 100644
> ---
> a/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_no_documentlanguage.html
> +++
> b/tp/tests/many_input_files/different_languages_gen_master_menu_res/no_master_menu_no_documentlanguage.html
> @@ -16,7 +16,9 @@
> <link href="#chap" rel="next" title="chap">
> <style type="text/css">
> <!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> pre.menu-comment-preformatted {font-family: serif}
> +span:hover a.copiable-link {visibility: visible}
> td.menu-entry-description {vertical-align: top}
> td.menu-entry-destination {vertical-align: top}
> th.menu-comment {text-align:left}
> @@ -32,7 +34,7 @@ th.menu-comment {text-align:left}
> <p>
> Next: <a href="#chap" accesskey="n" rel="next">chap</a> </p>
> </div>
> -<h1 class="top" id="max">max</h1>
> +<h1 class="top" id="max"><span>max<a class="copiable-link" href='#max'>
> ¶</a></span></h1>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#chap"
> accesskey="1">chap</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -53,7 +55,7 @@ chap
> <p>
> Previous: <a href="#Top" accesskey="p" rel="prev">max</a>, Up: <a
> href="#Top" accesskey="u" rel="up">max</a> </p>
> </div>
> -<h2 class="chapter" id="chap-1">1 chap</h2>
> +<h2 class="chapter" id="chap-1"><span>1 chap<a class="copiable-link"
> href='#chap-1'> ¶</a></span></h2>
>
> <table class="menu" border="0" cellspacing="0">
> <tr><td class="menu-entry-destination">• <a href="#section"
> accesskey="1">section</a>:</td><td> </td><td
> class="menu-entry-description">
> @@ -66,7 +68,7 @@ Previous: <a href="#Top" accesskey="p" rel="prev">max</a>,
> Up: <a href="#Top" ac
> <p>
> Up: <a href="#chap" accesskey="u" rel="up">chap</a> </p>
> </div>
> -<h3 class="section" id="sec">1.1 sec</h3>
> +<h3 class="section" id="sec"><span>1.1 sec<a class="copiable-link"
> href='#sec'> ¶</a></span></h3>
> </div>
> </div>
> </div>
> diff --git
> a/tp/tests/many_input_files/input_dir_non_ascii_res/simple_including_file.html
>
> b/tp/tests/many_input_files/input_dir_non_ascii_res/simple_including_file.html
> index 1b9bbd0d23..c28ea65d49 100644
> ---
> a/tp/tests/many_input_files/input_dir_non_ascii_res/simple_including_file.html
> +++
> b/tp/tests/many_input_files/input_dir_non_ascii_res/simple_including_file.html
> @@ -13,13 +13,19 @@
> <meta name="viewport" content="width=device-width,initial-scale=1">
>
> <link href="#Top" rel="start" title="Top">
> +<style type="text/css">
> +<!--
> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
> +span:hover a.copiable-link {visibility: visible}
> +-->
> +</style>
>
>
> </head>
>
> <body lang="en">
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="top-section">top section</h1>
> +<h1 class="top" id="top-section"><span>top section<a class="copiable-link"
> href='#top-section'> ¶</a></span></h1>
>
> <p>In included file
> </p>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_cartouche/nested_formats.html
>
> b/tp/tests/nested_formats/res_parser_html/nested_cartouche/nested_formats.html
> index 9796fccd4d..5f689f4ca5 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_cartouche/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_cartouche/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-cartouche">Test nested cartouche</h1>
> +<h1 class="top" id="Test-nested-cartouche"><span>Test nested cartouche<a
> class="copiable-link" href='#Test-nested-cartouche'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -85,7 +85,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -229,7 +229,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -374,7 +374,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -517,7 +517,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -661,7 +661,7 @@ Call macro in itemize in format_command
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -807,7 +807,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -950,7 +950,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1094,7 +1094,7 @@ Call macro in enumerate in format_command
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1242,7 +1242,7 @@ after item</td></tr>
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1384,7 +1384,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1527,7 +1527,7 @@ Call macro in mutitable in format_command
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2205,7 +2205,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2349,7 +2349,7 @@ call macro in deffn in format_command
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2496,7 +2496,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2642,7 +2642,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2786,7 +2786,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2931,7 +2931,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3078,7 +3078,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3221,7 +3221,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3364,7 +3364,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3509,7 +3509,7 @@ in macro
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3653,7 +3653,7 @@ call macro in flushleft in format_command
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3796,7 +3796,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3939,7 +3939,7 @@ html
> </p></blockquote>
> </td></tr></table>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_deffn/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_deffn/nested_formats.html
> index 019793219e..fed137db4f 100644
> --- a/tp/tests/nested_formats/res_parser_html/nested_deffn/nested_formats.html
> +++ b/tp/tests/nested_formats/res_parser_html/nested_deffn/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-deffn">Test nested deffn</h1>
> +<h1 class="top" id="Test-nested-deffn"><span>Test nested deffn<a
> class="copiable-link" href='#Test-nested-deffn'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -99,7 +99,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -259,7 +259,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -419,7 +419,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -577,7 +577,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -737,7 +737,7 @@ Call macro in itemize in format_command
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -898,7 +898,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1056,7 +1056,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1216,7 +1216,7 @@ Call macro in enumerate in format_command
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1379,7 +1379,7 @@ after item</td></tr>
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1536,7 +1536,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1695,7 +1695,7 @@ Call macro in mutitable in format_command
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2434,7 +2434,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2594,7 +2594,7 @@ call macro in deffn in format_command
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2756,7 +2756,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2917,7 +2917,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3076,7 +3076,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3237,7 +3237,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3399,7 +3399,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3557,7 +3557,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3716,7 +3716,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3876,7 +3876,7 @@ in macro
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4036,7 +4036,7 @@ call macro in flushleft in format_command
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4194,7 +4194,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4353,7 +4353,7 @@ html
> </p></blockquote>
> </dd></dl>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_enumerate/nested_formats.html
>
> b/tp/tests/nested_formats/res_parser_html/nested_enumerate/nested_formats.html
> index 6b6bdf30f4..200fce95cd 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_enumerate/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_enumerate/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-enumerate">Test nested enumerate</h1>
> +<h1 class="top" id="Test-nested-enumerate"><span>Test nested enumerate<a
> class="copiable-link" href='#Test-nested-enumerate'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -85,7 +85,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -229,7 +229,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -374,7 +374,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -517,7 +517,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -661,7 +661,7 @@ Call macro in itemize in format_command
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -807,7 +807,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -950,7 +950,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1094,7 +1094,7 @@ Call macro in enumerate in format_command
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1242,7 +1242,7 @@ after item</td></tr>
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1384,7 +1384,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1527,7 +1527,7 @@ Call macro in mutitable in format_command
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2205,7 +2205,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2349,7 +2349,7 @@ call macro in deffn in format_command
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2496,7 +2496,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2642,7 +2642,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2786,7 +2786,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2931,7 +2931,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3078,7 +3078,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3221,7 +3221,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3364,7 +3364,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3509,7 +3509,7 @@ in macro
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3653,7 +3653,7 @@ call macro in flushleft in format_command
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3796,7 +3796,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3939,7 +3939,7 @@ html
> </p></blockquote>
> </li></ol>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_example/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_example/nested_formats.html
> index 707acf2cd6..be2ff35c90 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_example/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_example/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-example">Test nested example</h1>
> +<h1 class="top" id="Test-nested-example"><span>Test nested example<a
> class="copiable-link" href='#Test-nested-example'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -85,7 +85,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -414,7 +414,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -567,7 +567,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -897,7 +897,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1050,7 +1050,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1382,7 +1382,7 @@ after item</td></tr>
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1534,7 +1534,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2395,7 +2395,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2726,7 +2726,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2882,7 +2882,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3036,7 +3036,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3368,7 +3368,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3521,7 +3521,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3849,7 +3849,7 @@ in macro
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4176,7 +4176,7 @@ html
> </pre></blockquote>
> </div>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_flushright/nested_formats.html
>
> b/tp/tests/nested_formats/res_parser_html/nested_flushright/nested_formats.html
> index dcf8961964..b66b7aeb56 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_flushright/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_flushright/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-flushright">Test nested flushright</h1>
> +<h1 class="top" id="Test-nested-flushright"><span>Test nested flushright<a
> class="copiable-link" href='#Test-nested-flushright'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -75,7 +75,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -206,7 +206,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -338,7 +338,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -469,7 +469,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -600,7 +600,7 @@ Call macro in itemize in format_command
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -733,7 +733,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -864,7 +864,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -995,7 +995,7 @@ Call macro in enumerate in format_command
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1130,7 +1130,7 @@ after item</td></tr>
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1261,7 +1261,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1392,7 +1392,7 @@ Call macro in mutitable in format_command
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1857,7 +1857,7 @@ Something2
> </pre></blockquote>
> </div><pre class="example-preformatted">
>
> -</pre><h4 class="subheading" id="subheading-13">subheading</h4>
> +</pre><h4 class="subheading" id="subheading-13"><span>subheading<a
> class="copiable-link" href='#subheading-13'> ¶</a></span></h4>
> <pre class="example-preformatted">
>
> </pre><pre class="verbatim">in verbatim
> @@ -2020,7 +2020,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2151,7 +2151,7 @@ call macro in deffn in format_command
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2285,7 +2285,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2419,7 +2419,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2551,7 +2551,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2683,7 +2683,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2817,7 +2817,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2948,7 +2948,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3078,7 +3078,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3210,7 +3210,7 @@ in macro
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3341,7 +3341,7 @@ call macro in flushleft in format_command
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3471,7 +3471,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3601,7 +3601,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_group/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_group/nested_formats.html
> index e8ff4fe980..48006b9036 100644
> --- a/tp/tests/nested_formats/res_parser_html/nested_group/nested_formats.html
> +++ b/tp/tests/nested_formats/res_parser_html/nested_group/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-group">Test nested group</h1>
> +<h1 class="top" id="Test-nested-group"><span>Test nested group<a
> class="copiable-link" href='#Test-nested-group'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -75,7 +75,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -206,7 +206,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -338,7 +338,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -469,7 +469,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -600,7 +600,7 @@ Call macro in itemize in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -733,7 +733,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -864,7 +864,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -995,7 +995,7 @@ Call macro in enumerate in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1130,7 +1130,7 @@ after item</td></tr>
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1261,7 +1261,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1392,7 +1392,7 @@ Call macro in mutitable in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2020,7 +2020,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2151,7 +2151,7 @@ call macro in deffn in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2285,7 +2285,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2419,7 +2419,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2551,7 +2551,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2683,7 +2683,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2817,7 +2817,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2948,7 +2948,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3078,7 +3078,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3210,7 +3210,7 @@ in macro
> <p class="flushleft-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3341,7 +3341,7 @@ call macro in flushleft in format_command
> <p class="flushleft-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3471,7 +3471,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3601,7 +3601,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_itemize/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_itemize/nested_formats.html
> index 9e93bc246f..4b12f1e134 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_itemize/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_itemize/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-itemize">Test nested itemize</h1>
> +<h1 class="top" id="Test-nested-itemize"><span>Test nested itemize<a
> class="copiable-link" href='#Test-nested-itemize'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -91,7 +91,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -241,7 +241,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -392,7 +392,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -541,7 +541,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -691,7 +691,7 @@ Call macro in itemize in format_command
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -843,7 +843,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -992,7 +992,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1142,7 +1142,7 @@ Call macro in enumerate in format_command
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1296,7 +1296,7 @@ after item</td></tr>
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1444,7 +1444,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1593,7 +1593,7 @@ Call macro in mutitable in format_command
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2295,7 +2295,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2445,7 +2445,7 @@ call macro in deffn in format_command
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2598,7 +2598,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2750,7 +2750,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2900,7 +2900,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3051,7 +3051,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3204,7 +3204,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3353,7 +3353,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3502,7 +3502,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3653,7 +3653,7 @@ in macro
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3803,7 +3803,7 @@ call macro in flushleft in format_command
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3952,7 +3952,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4101,7 +4101,7 @@ html
> </p></blockquote>
> </li></ul>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_menu/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_menu/nested_formats.html
> index 24d30f4273..0016ceb887 100644
> --- a/tp/tests/nested_formats/res_parser_html/nested_menu/nested_formats.html
> +++ b/tp/tests/nested_formats/res_parser_html/nested_menu/nested_formats.html
> @@ -47,7 +47,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-menu">Test nested menu</h1>
> +<h1 class="top" id="Test-nested-menu"><span>Test nested menu<a
> class="copiable-link" href='#Test-nested-menu'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -87,7 +87,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -416,7 +416,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -569,7 +569,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -899,7 +899,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1052,7 +1052,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1384,7 +1384,7 @@ after item</td></tr>
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1536,7 +1536,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2397,7 +2397,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2728,7 +2728,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2884,7 +2884,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3038,7 +3038,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3370,7 +3370,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3523,7 +3523,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3851,7 +3851,7 @@ in macro
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4178,7 +4178,7 @@ html
> </pre></blockquote>
> </th></tr></table>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_multitable/nested_formats.html
>
> b/tp/tests/nested_formats/res_parser_html/nested_multitable/nested_formats.html
> index 7347958ef1..c2c0c78493 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_multitable/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_multitable/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-multitable">Test nested multitable</h1>
> +<h1 class="top" id="Test-nested-multitable"><span>Test nested multitable<a
> class="copiable-link" href='#Test-nested-multitable'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -85,7 +85,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -230,7 +230,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -375,7 +375,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -519,7 +519,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -664,7 +664,7 @@ Call macro in itemize in format_command
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -810,7 +810,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -954,7 +954,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1099,7 +1099,7 @@ Call macro in enumerate in format_command
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1247,7 +1247,7 @@ after item</td></tr>
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1390,7 +1390,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1534,7 +1534,7 @@ Call macro in mutitable in format_command
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2098,7 +2098,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2243,7 +2243,7 @@ call macro in deffn in format_command
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2390,7 +2390,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2537,7 +2537,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2682,7 +2682,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2828,7 +2828,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2975,7 +2975,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3119,7 +3119,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3263,7 +3263,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3408,7 +3408,7 @@ in macro
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3553,7 +3553,7 @@ call macro in flushleft in format_command
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3696,7 +3696,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3840,7 +3840,7 @@ html
> </p></blockquote></td></tr>
> </table>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_quotation/nested_formats.html
>
> b/tp/tests/nested_formats/res_parser_html/nested_quotation/nested_formats.html
> index 972e2f1bbc..fb0b036cfd 100644
> ---
> a/tp/tests/nested_formats/res_parser_html/nested_quotation/nested_formats.html
> +++
> b/tp/tests/nested_formats/res_parser_html/nested_quotation/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-quotation">Test nested quotation</h1>
> +<h1 class="top" id="Test-nested-quotation"><span>Test nested quotation<a
> class="copiable-link" href='#Test-nested-quotation'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -91,7 +91,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -241,7 +241,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -392,7 +392,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -541,7 +541,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -691,7 +691,7 @@ Call macro in itemize in format_command
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -843,7 +843,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -992,7 +992,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1142,7 +1142,7 @@ Call macro in enumerate in format_command
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1296,7 +1296,7 @@ after item</td></tr>
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1444,7 +1444,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1593,7 +1593,7 @@ Call macro in mutitable in format_command
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2295,7 +2295,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2445,7 +2445,7 @@ call macro in deffn in format_command
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2598,7 +2598,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2750,7 +2750,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2900,7 +2900,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3051,7 +3051,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3204,7 +3204,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3353,7 +3353,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3502,7 +3502,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3653,7 +3653,7 @@ in macro
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3803,7 +3803,7 @@ call macro in flushleft in format_command
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3952,7 +3952,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4101,7 +4101,7 @@ html
> </p></blockquote>
> </blockquote>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/nested_table/nested_formats.html
> b/tp/tests/nested_formats/res_parser_html/nested_table/nested_formats.html
> index 15afe14a53..ba9cc1ae38 100644
> --- a/tp/tests/nested_formats/res_parser_html/nested_table/nested_formats.html
> +++ b/tp/tests/nested_formats/res_parser_html/nested_table/nested_formats.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-table">Test nested table</h1>
> +<h1 class="top" id="Test-nested-table"><span>Test nested table<a
> class="copiable-link" href='#Test-nested-table'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -90,7 +90,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -240,7 +240,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -392,7 +392,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -541,7 +541,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -691,7 +691,7 @@ Call macro in itemize in format_command
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -844,7 +844,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -993,7 +993,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1143,7 +1143,7 @@ Call macro in enumerate in format_command
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1298,7 +1298,7 @@ after item</td></tr>
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1446,7 +1446,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1595,7 +1595,7 @@ Call macro in mutitable in format_command
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2299,7 +2299,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2449,7 +2449,7 @@ call macro in deffn in format_command
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2603,7 +2603,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2755,7 +2755,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2905,7 +2905,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3056,7 +3056,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3210,7 +3210,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3359,7 +3359,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3508,7 +3508,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3660,7 +3660,7 @@ in macro
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3810,7 +3810,7 @@ call macro in flushleft in format_command
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3960,7 +3960,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -4109,7 +4109,7 @@ html
> </dd>
> </dl>
>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/nested_formats/res_parser_html/texi_nested_formats/index.html
> b/tp/tests/nested_formats/res_parser_html/texi_nested_formats/index.html
> index 99c10202c7..dc6cd42e61 100644
> --- a/tp/tests/nested_formats/res_parser_html/texi_nested_formats/index.html
> +++ b/tp/tests/nested_formats/res_parser_html/texi_nested_formats/index.html
> @@ -45,7 +45,7 @@ ul.mark-bullet {list-style-type: disc}
>
>
> <div class="top-level-extent" id="Top">
> -<h1 class="top" id="Test-nested-group">Test nested group</h1>
> +<h1 class="top" id="Test-nested-group"><span>Test nested group<a
> class="copiable-link" href='#Test-nested-group'> ¶</a></span></h1>
>
>
> <p>Call macro
> @@ -75,7 +75,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading">subheading</h4>
> +<h4 class="subheading" id="subheading"><span>subheading<a
> class="copiable-link" href='#subheading'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -206,7 +206,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-1">subheading</h4>
> +<h4 class="subheading" id="subheading-1"><span>subheading<a
> class="copiable-link" href='#subheading-1'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -338,7 +338,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-2">subheading</h4>
> +<h4 class="subheading" id="subheading-2"><span>subheading<a
> class="copiable-link" href='#subheading-2'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -469,7 +469,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-3">subheading</h4>
> +<h4 class="subheading" id="subheading-3"><span>subheading<a
> class="copiable-link" href='#subheading-3'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -600,7 +600,7 @@ Call macro in itemize in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-4">subheading</h4>
> +<h4 class="subheading" id="subheading-4"><span>subheading<a
> class="copiable-link" href='#subheading-4'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -733,7 +733,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-5">subheading</h4>
> +<h4 class="subheading" id="subheading-5"><span>subheading<a
> class="copiable-link" href='#subheading-5'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -864,7 +864,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-6">subheading</h4>
> +<h4 class="subheading" id="subheading-6"><span>subheading<a
> class="copiable-link" href='#subheading-6'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -995,7 +995,7 @@ Call macro in enumerate in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-7">subheading</h4>
> +<h4 class="subheading" id="subheading-7"><span>subheading<a
> class="copiable-link" href='#subheading-7'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1130,7 +1130,7 @@ after item</td></tr>
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-8">subheading</h4>
> +<h4 class="subheading" id="subheading-8"><span>subheading<a
> class="copiable-link" href='#subheading-8'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1261,7 +1261,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-9">subheading</h4>
> +<h4 class="subheading" id="subheading-9"><span>subheading<a
> class="copiable-link" href='#subheading-9'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -1392,7 +1392,7 @@ Call macro in mutitable in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-10">subheading</h4>
> +<h4 class="subheading" id="subheading-10"><span>subheading<a
> class="copiable-link" href='#subheading-10'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2020,7 +2020,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-14">subheading</h4>
> +<h4 class="subheading" id="subheading-14"><span>subheading<a
> class="copiable-link" href='#subheading-14'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2151,7 +2151,7 @@ call macro in deffn in format_command
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-15">subheading</h4>
> +<h4 class="subheading" id="subheading-15"><span>subheading<a
> class="copiable-link" href='#subheading-15'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2285,7 +2285,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-16">subheading</h4>
> +<h4 class="subheading" id="subheading-16"><span>subheading<a
> class="copiable-link" href='#subheading-16'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2419,7 +2419,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-17">subheading</h4>
> +<h4 class="subheading" id="subheading-17"><span>subheading<a
> class="copiable-link" href='#subheading-17'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2551,7 +2551,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-18">subheading</h4>
> +<h4 class="subheading" id="subheading-18"><span>subheading<a
> class="copiable-link" href='#subheading-18'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2683,7 +2683,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-19">subheading</h4>
> +<h4 class="subheading" id="subheading-19"><span>subheading<a
> class="copiable-link" href='#subheading-19'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2817,7 +2817,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-20">subheading</h4>
> +<h4 class="subheading" id="subheading-20"><span>subheading<a
> class="copiable-link" href='#subheading-20'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -2948,7 +2948,7 @@ in macro
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-21">subheading</h4>
> +<h4 class="subheading" id="subheading-21"><span>subheading<a
> class="copiable-link" href='#subheading-21'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3078,7 +3078,7 @@ html
> <p>A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-22">subheading</h4>
> +<h4 class="subheading" id="subheading-22"><span>subheading<a
> class="copiable-link" href='#subheading-22'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3210,7 +3210,7 @@ in macro
> <p class="flushleft-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-23">subheading</h4>
> +<h4 class="subheading" id="subheading-23"><span>subheading<a
> class="copiable-link" href='#subheading-23'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3341,7 +3341,7 @@ call macro in flushleft in format_command
> <p class="flushleft-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-24">subheading</h4>
> +<h4 class="subheading" id="subheading-24"><span>subheading<a
> class="copiable-link" href='#subheading-24'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3471,7 +3471,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-25">subheading</h4>
> +<h4 class="subheading" id="subheading-25"><span>subheading<a
> class="copiable-link" href='#subheading-25'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> @@ -3601,7 +3601,7 @@ html
> <p class="flushright-paragraph">A quot—ation
> </p></blockquote>
> </div>
> -<h4 class="subheading" id="subheading-26">subheading</h4>
> +<h4 class="subheading" id="subheading-26"><span>subheading<a
> class="copiable-link" href='#subheading-26'> ¶</a></span></h4>
>
> <pre class="verbatim">in verbatim
> </pre>
> diff --git
> a/tp/tests/test_scripts/customization_sectioning_without_anchors.sh
> b/tp/tests/test_scripts/customization_sectioning_without_anchors.sh
> new file mode 100755
> index 0000000000..3fa0d6db0e
> --- /dev/null
> +++ b/tp/tests/test_scripts/customization_sectioning_without_anchors.sh
> @@ -0,0 +1,19 @@
> +#! /bin/sh
> +# This file generated by maintain/regenerate_cmd_tests.sh
> +
> +if test z"$srcdir" = "z"; then
> + srcdir=.
> +fi
> +
> +one_test_logs_dir=test_log
> +
> +
> +dir=customization
> +name='sectioning_without_anchors'
> +mkdir -p $dir
> +
> +"$srcdir"/run_parser_all.sh -dir $dir $name
> +exit_status=$?
> +cat $dir/$one_test_logs_dir/$name.log
> +exit $exit_status
> +
> --
> 2.39.1
>
>
Re: [PATCH] HTML: Enable generating copiable anchors on heading commands, Gavin Smith, 2023/01/26