Behaviour SwRS-MDOKFSTUDIO-GFM-008
Strikethrough, footnotes and pipe tables render as on GitHub
When prose contains ~~text~~, a footnote reference with its definition, or a GFM pipe table, the extension SHALL render the text struck through, the reference with its footnote text, and the table header with the alignment of the delimiter row on every cell of the column, leaving a single ~x~ pair and tildes in code literal.
Step 2 of path 1 in StRS-MDOKFSTUDIO-GFM-002: from “The URL is a link, and the prose holds struck text, a footnote or a pipe table” to “The struck text, the footnote and the aligned table are drawn”.
Scenarios 6
The situations the tests check; open one to read it.
nominalStruck text in prose and tables
Given~~old~~ in a paragraph, a list item and a table cell
Whenthe preview is rendered
Theneach is rendered struck through
boundarySingle tildes and code
Given'~x~' in prose and '~~x~~' in inline code
Whenthe preview is rendered
Thenboth stay literal text
nominalFootnote renders
Givena paragraph with [^1] and a definition [^1]: Text
Whenthe preview is rendered
Thena reference and the footnote text are present
boundaryReference without definition
Givena [^2] reference with no definition
Whenthe preview is rendered
Thenno footnote text is invented and rendering succeeds
nominalAligned column
Givena pipe table with a '---:' column
Whenthe preview is rendered
Theneach cell of that column is right-aligned and the header row is a header
boundaryUnaligned columns
Givena pipe table with plain '---' columns
Whenthe preview is rendered
Thenno alignment is applied
Implemented in 2
Tested by 2
Replaces
SwRS-MDOKFSTUDIO-GFM-014Footnotes render reference and text superseded superseded by SwRS-MDOKFSTUDIO-GFM-008 Markdown file
SwRS-MDOKFSTUDIO-GFM-015Pipe tables keep header and column alignment superseded superseded by SwRS-MDOKFSTUDIO-GFM-008 Markdown file