While DOC: section titles are not converted into RST headings sections and are only decorated with strong emphasis markup, nothing stops us from generating internal hyperlinks for them, to mimic implicit hyperlinks to RST headings.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -836,6 +836,7 @@ sub output_blockhead_rst(%) { · 835 unmodified lines | ||
| 836 | 836 | next if (defined($nosymbol_table{$section})); |
| 837 | 837 | |
| 838 | 838 | if ($output_selection != OUTPUT_INCLUDE) { |
| 839 | + print ".. _$section:\n\n"; | |
| 839 | 840 | print "**$section**\n\n"; |
| 840 | 841 | } |
| 841 | 842 | print_lineno($section_start_lines{$section}); |