ruby/lib/rdoc/markup
nicholas a. evans dd43af3be7 [ruby/rdoc] Use distinct styles for note lists and label lists
(https://github.com/ruby/rdoc/pull/1209)

* Use the original `label` description list style

As a default for all description lists, the original "label" style is
more readable.

This is slightly different from the original `label` dl though:
* slightly increased left margin for `dd` (to 1em)
* removed right margin on `dd`
* removed `dt` bottom margin and `dd` top margin, to reduce the gap
  between the term and its description (to only the standard line-height
  gap).

* Add closing tags for description list terms

Without the closing tags, the dt elements contain whitespace after the
text.  This normally isn't a big deal, but does mess some things up,
e.g: using `::after` with `content: ", "` in stylesheets.

* Restore float:left style for note lists

Unlike the original note list styles, this version sets the line-height
for all `dt` elements to be the same as the `p` elements contained
inside the `dd`, so that the second line has the same indentation as all
subsequent lines.

* Add commas between note list terms

9e69ea6d75
2024-12-08 10:43:47 +00:00
..
attr_changer.rb
attr_span.rb
attribute_manager.rb [ruby/rdoc] Improve rubocop setup 2024-07-17 20:43:08 +00:00
attributes.rb
blank_line.rb
block_quote.rb
document.rb
formatter.rb [ruby/rdoc] Fix TIDYLINK after braces 2023-11-14 07:59:56 +00:00
hard_break.rb
heading.rb
include.rb
indented_paragraph.rb
list.rb
list_item.rb
paragraph.rb
parser.rb [ruby/rdoc] [DOC] nodoc for probably internal methods 2023-12-16 00:26:39 +09:00
pre_process.rb [ruby/rdoc] Deprecate main and title directives 2024-12-05 11:36:34 +00:00
raw.rb
regexp_handling.rb
rule.rb
table.rb [ruby/rdoc] [DOC] nodoc for probably internal methods 2023-12-16 00:26:39 +09:00
to_ansi.rb
to_bs.rb [ruby/rdoc] Improve rubocop setup 2024-07-17 20:43:08 +00:00
to_html.rb [ruby/rdoc] Use distinct styles for note lists and label lists 2024-12-08 10:43:47 +00:00
to_html_crossref.rb [ruby/rdoc] Allow empty name rdoc-ref as a local link 2023-12-31 15:19:50 +00:00
to_html_snippet.rb [ruby/rdoc] [DOC] Add missing documents 2023-12-16 00:26:37 +09:00
to_joined_paragraph.rb [ruby/rdoc] Use flat_map for better performance 2023-06-14 23:47:25 +00:00
to_label.rb
to_markdown.rb [ruby/rdoc] Fix ToMarkdown missing newlines for label-lists 2024-03-08 10:13:04 +00:00
to_rdoc.rb [ruby/rdoc] Fix ToRdoc#accept_table 2024-10-03 12:27:43 +00:00
to_table_of_contents.rb
to_test.rb
to_tt_only.rb
verbatim.rb