docs: drop the predecessor comparisons from comments and tests
This commit is contained in:
parent
36faa4fb93
commit
19e7cfaca3
19 changed files with 65 additions and 73 deletions
|
|
@ -2,9 +2,7 @@
|
|||
//!
|
||||
//! Plain text has no markup to carry emphasis, so it is dropped and the words
|
||||
//! kept. A link becomes `label (url)`: self-contained, and readable without
|
||||
//! scrolling to a reference list somewhere else. md2txt's `text` renderer emits
|
||||
//! numbered markers instead but never writes the list they point at, so the
|
||||
//! numbers lead nowhere.
|
||||
//! scrolling to a reference list somewhere else.
|
||||
|
||||
use itsybitsy_core::ir::{Doc, Inline};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
//! Fixed-width plain text, for Nex and later Gopher.
|
||||
//!
|
||||
//! One renderer, not two. md2txt ships a `text` and a `nex` renderer that differ
|
||||
//! in exactly two things — whether headings get FIGlet banners, and whether links
|
||||
//! are inlined or numbered — and both of those are now configuration. Its
|
||||
//! numbered form never writes the reference list its numbers point at, so the
|
||||
//! inline form is the only one that works and is the default here.
|
||||
//! One renderer, not two: whether a heading gets a FIGlet banner and how a link
|
||||
//! is written are both configuration, so Nex and Gopher are this renderer with
|
||||
//! different settings rather than renderers of their own. A link is inlined as
|
||||
//! `label (url)` rather than numbered, because a numbered marker is only useful
|
||||
//! with a reference list to point at.
|
||||
//!
|
||||
//! Unlike gemtext this wraps, because Nex and Gopher clients do not.
|
||||
|
||||
|
|
@ -115,7 +115,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn one_blank_line_separates_blocks_by_default() {
|
||||
// md2txt emits two, which reads as double-spaced throughout.
|
||||
// Two would read as double-spaced throughout.
|
||||
assert_eq!(render("a\n\nb\n"), "a\n\nb\n");
|
||||
}
|
||||
|
||||
|
|
@ -184,7 +184,6 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn tables_are_rendered_as_aligned_columns() {
|
||||
// md2txt drops tables entirely; this is the flaw that fixes.
|
||||
assert_eq!(
|
||||
render("| Format | Port |\n| --- | --- |\n| Nex | 1900 |\n"),
|
||||
"Format Port\n------ ----\nNex 1900\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue