Skip to content

Cleanup rules

github-actions[bot] edited this page Nov 18, 2026 · 1 revision

Cleanup rules

Written against main after v2.1.0.

This page lists every rule the cleanup runs, in the order Transform::defaultRules() applies them. The order is defined once, and the CLI, the full-pipeline test and any library consumer all use it. DefaultRulesTest pins that order and fails if a rule class in src/Rules/ is left out of it.

What the rules act on

Each rule lives in src/Rules/ and operates on the parsed HTML inside four targets per item: <title>, <content:encoded>, <excerpt:encoded>, and the <wp:meta_value> of the _uams_summary postmeta. Other WXR elements (<dc:creator>, the rest of <wp:postmeta>, etc.) are left untouched.

<title> and <content:encoded> are treated as raw HTML. <excerpt:encoded> arrives entity-encoded (&lt;span&gt; rather than <span>) and is entity-decoded before rules run; after rules run the excerpt is reduced to plain text via strip_tags + mb_trim. The _uams_summary postmeta value is also entity-encoded HTML, but unlike the excerpt its structure is preserved, decode → run rules → re-encode the < and > characters → write back to CDATA. Trailing Unicode whitespace (including &nbsp;) is stripped from <title> and <content:encoded> output too, that's the recurring &nbsp; "blank line" the legacy editor liked to append on save.

Void elements are normalized to the HTML5 form on output: every <br /> and <br/> becomes <br> once the parsed DOM is serialized back out. This is a free side-effect of HTML5 serialization by PHP's Dom\HTMLDocument (the same parser and serializer on every operating system, so the output does not depend on the libxml build), not a rule, so it applies uniformly to all three processed elements without any rule configuration.

Rule order

The pipeline runs every configured rule in order against every processed element. Order is significant, StripLeadingDateLine must see the body after UnwrapSpans has unwrapped any presentational wrapper, UnwrapEmptyBolds must run after PromoteBoldToInnerStrong so the "speaker block" lift consumes the orphan <b> first, RenameBoldToStrong must run after the <b>-specific rules so it only sees the genuine inline-bold case, TrimBlockEdges runs after LiftTrailingBr so a trailing <br> lifted out of an inline gets stripped from the surrounding block, etc.

# Rule What it does
1 StripHtmlComments Removes every HTML comment node from the body. Targets WordPress block-editor markers (<!-- wp:paragraph -->, <!-- /wp:paragraph -->, …) and any other inline/standalone comments. WXR-level XML comments (importer instructions, the generator marker) live outside the processed CDATA and are preserved.
2 StripStyleTags Removes every <style> element, wrapper and content, from the body. Targets the Word-paste top-of-content stylesheet block (font definitions plus Mso paragraph rules wrapped in an HTML comment) and any other inline CSS. Case-insensitive on the tag name so <STYLE> matches too.
3 CaptionizeImageCutline Converts legacy image-caption markup into a [caption]<img …> caption text[/caption] shortcode pair. Matches seven pattern families (paths A through G). Sibling-style cutlines: (a) <img> followed by a <div class="cutline">, <span class="cutline">, or <font class="cutline"> (the last is the legacy serializer's form; in practice <font> is unwrapped by StripMsoNoise before this rule runs, so by the time Path A scans for cutlines the text has already become plain, <font> matching is still in the tag list as a belt-and-suspenders safeguard); accepts whitespace/<br> between the img and the cutline, optionally with either the img or the cutline wrapped in its own <p>; (b) <div class="wp-caption …"> (any alignment modifier or none) wrapping an <img> and a <p class="wp-caption-text">; (c) <p> whose alignment is right or left, via align="right|left" OR style="text-align: right|left", and whose meaningful children are an <img> followed by any mix of text nodes and <br> separators (the <br> is optional; multiple <br>s become soft spaces). Converts to [caption align="alignright|alignleft"]…[/caption], padded with \n; (d) <td> whose meaningful children are an <img>, a <br>, and one or more text nodes, the cell's contents are replaced with a bare [caption]<img …> caption text[/caption] shortcode and the wrapping <td> stays put, leaving UnwrapCaptionOnlyTable (rule 30) to lift the captions out when every cell in the table qualifies; (e) a cutline element (<font|span|div|p class="cutline">) that WRAPS its <img> (img is a child of the cutline rather than a sibling), the wrapper must contain exactly one <img> and one or more text nodes with <br> tolerated as soft spaces. The img keeps src, alt, width, and height; every other attribute (class, style, longdesc, …) is stripped. width and height are preserved so the destination importer can size the caption block. Multi-token classes (class="wp-caption alignright", class="foo cutline bar") still match. Leading/trailing NBSP ( ) inside a <td> or <p> does not disqualify the match, whitespace skipping uses mb_trim, which strips NBSP along with ASCII whitespace. When Path A's img sits inside an aligned <p>, the resulting caption inherits the parent's alignment. Runs before StripMsoNoise so <font class="cutline"> wrappers and <p style="text-align: …"> declarations are still present, before StripAlignLeft so <p align="left"> is still detectable, and before UnwrapSpans so <span class="cutline"> is still detectable.
4 StripMsoNoise Removes Mso* class tokens, inline style attributes, <o:p> placeholder tags, and unwraps <font> tags. Table structure preserved. Runs after CaptionizeImageCutline so the captionizer can still see <p style="text-align: right"> alignment and <font class="cutline"> wrappers before this rule strips/unwraps them.
5 StripTableAttributes Strips presentational attributes from <table> (height, width, border, cellpadding, cellspacing), <td> (valign), and <ul> (type, presentational bullet style). Structural attributes (class, summary, scope, headers, rowspan, colspan) and other tags are left alone. The rule keeps its name even though its scope extends past tables; it's configurable on construction.
6 StripAlignLeft Removes every align="left" attribute regardless of which tag carries it. Left alignment is the default for LTR content and align is deprecated in HTML5, so the attribute is pure clutter. Other values (right, center, justify) are preserved. Case-insensitive on the value (align="LEFT" stripped too). Runs after CaptionizeImageCutline so Path E (the <p align="left"> caption shape) sees the unstripped attribute.
7 UnwrapSpans Unwraps every <span> element, preserving its children in place.
8 UnwrapSmartTags Unwraps every Microsoft Office "smart tag", any element whose name starts with stN: (where N is a digit; default coverage st1–st9). Covers the v1 forms (<st1:city>, <st1:state>, <st1:place>, <st1:country-region>, <st1:street>, <st1:address>, <st1:personname>, <st1:time>, <st1:postalcode>, <st1:date>) and the v2 person-name components (<st2:sn>, <st2:givenname>, <st2:middlename>, …). Children flatten in a single pass.
9 StripOfficeNamespaceTags Removes every element, wrapper and content, whose tag name begins with v: (Word VML) or o: (Office). Targets vector drawing artifacts (<v:shapetype>, <v:shape>, <v:stroke>, <v:imagedata>, <v:f>, <v:path>, …) and Office attribute carriers (<o:lock>). Unlike SmartTags, the contents are XML attribute soup, not display text, so the whole subtree is dropped.
10 UnwrapBareDivs Unwraps every <div> element with no attributes, preserving its children in place. <div class="…">, <div id="…">, etc. are left alone. Nested bare divs flatten in a single pass.
11 UnwrapUnderlines Unwraps every <u> element, preserving its children in place. <u> is presentational underline markup; the destination CMS handles styling.
12 MergeAdjacentLists Merges consecutive <ul>s into one and consecutive <ol>s into one, when a list's next non-whitespace sibling is another list of the same tag, the second list's children are moved into the first and the second is dropped. Mixed-type sequences (<ul> then <ol>) and lists separated by non-whitespace are left alone. Iterates until stable so a run of N adjacent lists collapses in O(N) passes. The first list's attributes are preserved.
13 SplitParagraphsOnDoubleBr Splits any <p> at every run of two or more <br> elements, producing one new <p> per resulting group. Single <br>s are preserved. Matches <br>, <br />, and <br/> identically, they're the same DOM element once parsed.
14 PromoteBoldToInnerStrong Rewrites the legacy <b><p>…</p></b> "speaker block" markup into valid <p><strong>…</strong></p>. Inline <b> inside paragraphs is left alone.
15 LiftTrailingBr Lifts every trailing <br> out of its inline parent so the closing tag precedes the <br> with no whitespace between. Iterative, stacked trailing <br>s (<b>foo<br><br></b>) and nested cases (<b>foo<i>bar<br></i></b>) flatten all the way out. Skips block parents (<p>, <li>, <td>, <h1>–<h6>) so trailing breaks there stay inside the block for TrimBlockEdges to strip.
16 TrimBlockEdges Strips leading and trailing whitespace and <br> tags from inside <p>, <li>, <td>, and <h1>–<h6>. Targets block tags only; inline tags are handled by LiftTrailingBr.
17 CollapseBareDoubleBr Replaces runs of 2+ consecutive body-level <br> tags (with optional whitespace between) with a single blank-line text node, consuming adjacent whitespace so exactly one blank line remains. <br><br> inside a <p> is left for SplitParagraphsOnDoubleBr.
18 UnwrapEmptyBolds Unwraps <b> elements whose only content is whitespace (e.g. <b> </b> accidentally sprinkled between a sentence and the following quote, or <b></b> left behind after LiftTrailingBr emptied one out).
19 RemoveEmptyContainers Recursively removes every container element whose visible content is empty, <p></p>, <p> </p>, <p><br></p>, <p><strong><br><br></strong></p> (strong first, then the now-empty p) all go. Preserves void/atomic elements (<br>, <hr>, <img>, …), content-producing elements (<iframe>, <object>, <audio>, <video>, <svg>, <canvas>), interactive (<button>, <select>, <textarea>), <a> (anchors carry meaning), and table structure (<table>/<tr>/<td> etc.). Loops until stable so arbitrary nesting collapses out.
20 UnwrapRemainingDivs Unwraps every remaining <div>, leaving a blank line before and after the unwrapped content. After UnwrapBareDivs (rule 10), CaptionizeImageCutline (rule 3), and RemoveEmptyContainers (rule 19), surviving divs are attributed non-empty non-wp-caption wrappers (<div class="news_contentTitleLine">, <div class="Section1">, <div align="center">, …), drop the wrapper, keep the content. The blank-line padding (\n\n before and after) preserves the visual paragraph separation a <div> implicitly provided; CollapseExtraLineBreaks (rule 44) then collapses any 3+ consecutive \n runs back to 2. Outer wrappers around already-canonical [caption id="…"]…[/caption] shortcodes (the double-wrap case) collapse to just the inner shortcode plus padding.
21 UnwrapDefinitionLists Unwraps every <dl>, <dt>, and <dd> element, leaving a blank line before and after the unwrapped content. The legacy exports use <dl id="attachment_NNN"><dt>[caption …]…[/caption]</dt><dd>Body paragraph.</dd></dl> as a structural carrier for an attachment-id caption shortcode plus the body paragraph that goes with it, the wrappers themselves carry no semantic value in the destination CMS. Same blank-line bookkeeping as UnwrapRemainingDivs; CollapseExtraLineBreaks (rule 44) collapses any 3+ consecutive \n runs back to 2.
22 UnwrapCaptionImageAnchors Unwraps every <a> element whose only meaningful child is an <img>, when the anchor sits between a [caption …] opening shortcode and a [/caption] closing shortcode. The legacy WordPress caption shortcode wraps a "click to enlarge" anchor around the in-line image; the destination CMS generates that interaction from the caption's image attachment, so the anchor is redundant inside a caption. Anchors outside a caption shortcode (inline thumbnails linking to downloads, etc.) are left alone. Walk is depth-first across the document with state (inCaption) tracked through text-node shortcode markers, an opener inside a <p> and a closer inside a sibling text node still contribute to the same caption span. Recognizes both attributed ([caption id="…" align="…"]) and bare ([caption]) opener forms.
23 UnwrapCaptionOnlyParagraph Unwraps every <p> whose entire content (after trimming whitespace) is exactly one [caption …]…[/caption] shortcode pair, leaving a blank line before the opening <p> and after the closing </p>. WordPress's wpautop filter wraps standalone caption shortcodes in <p>, and the destination CMS parses [caption] at the body level natively. Match criteria: the trimmed text content must start with [caption, end with [/caption], and contain exactly one of each marker. Paragraphs that mix a caption with surrounding prose (<p>Lead. [caption]…[/caption] Trail.</p>) or stack multiple captions in one paragraph are left alone. Same blank-line bookkeeping as UnwrapRemainingDivs/UnwrapDefinitionLists; CollapseExtraLineBreaks (rule 44) collapses any 3+ consecutive \n runs back to 2.
24 RestoreSplitCaptionCloser Moves a leading [/caption] from a <p> back to the end of the preceding <p>, undoing the WordPress wpautop filter's habit of splitting a single caption shortcode across a paragraph boundary when the caption text contained a blank line. Match: a <p> whose first non-whitespace text content (after leading whitespace text nodes and leading whitespace within the first content text node) starts with [/caption], AND whose immediately-preceding non-whitespace sibling is another <p>. The [/caption] token is appended to the previous <p> and stripped from the current one; surrounding whitespace stays put. Runs before LiftCaptionsOutOfParagraph (rule 25) so the rejoined paragraphs have balanced shortcode markers in time for the lift rule to recognize them.
25 LiftCaptionsOutOfParagraph Lifts every [caption …]…[/caption] shortcode out of any wrapping <p>, splitting the paragraph around the captions and wrapping any prose chunks left behind in fresh <p>s. Walks the <p>'s children parsing them into caption chunks (text + element nodes spanning [caption opener → [/caption] closer) and prose chunks (everything else), with <br> and whitespace serving as chunk boundaries. Empty/whitespace-only prose chunks are dropped; non-empty prose chunks get a fresh <p> wrapper at the original <p>'s parent level. Inter-chunk separators: caption + caption → single \n; caption + prose or prose + caption → \n\n. \n\n padding before the first chunk and after the last. Only fires when the count of [caption openers equals the count of [/caption] closers and both are at least 1, paragraphs with unbalanced markers are left alone. Runs after UnwrapCaptionOnlyParagraph (which handles the simple single-caption case) so this rule only sees multi-caption or mixed-content paragraphs. CollapseExtraLineBreaks (rule 44) collapses any 3+ consecutive \n runs back to 2.
26 AddMissingCaptionAttributes Fills in canonical attribute defaults on [caption …] openers and on the <img> they wrap. Defaults applied to the opener token: id="" if no id attribute is present, align="aligncenter" if no align is present, width="300" if no width is present. Default applied to each <img> between a [caption] opener and its matching [/caption] closer: width="300" if the <img> has no width attribute (height is left alone, the importer derives it from the aspect ratio). Added attributes are prepended at the head of the opener's attribute list in canonical order (id, align, width); existing attributes are preserved verbatim in their original positions. Caption state is tracked depth-first across element boundaries via text-node shortcode markers ([caption vs [/caption], unambiguous because the closer doesn't start with [caption). Runs late, after all structural caption rules (UnwrapCaptionImageAnchors, UnwrapCaptionOnlyParagraph, RestoreSplitCaptionCloser, LiftCaptionsOutOfParagraph), so they see the original opener tokens and don't accidentally key off attribute presence.
27 UnwrapTableWrappers Lifts every <table> out of a wrapping <p>, <strong>, or <em> element, leaving a blank line before the opening <table> and after the closing </table>. <p> cannot legally contain a <table> per HTML5, libxml's HTML parser already auto-closes the <p> before the <table> during ingest, so the <p> case rarely fires in practice; the rule handles it for completeness. <strong> and <em> are inline and similarly cannot contain block-level structure; when they do, the destination CMS reads the markup unpredictably. Nested wrappers (<em><strong><table></strong></em>) collapse all the way out. Mixed-content wrappers (<strong>Lead<table></table>Trail</strong>) keep the non-table content as siblings at the wrapper's parent level. Runs before UnwrapWholeContentTable so a body whose only meaningful child is a wrapped table becomes eligible for whole-content unwrapping once this rule has lifted the table out.
28 UnwrapWholeContentTable When the body's sole meaningful child is a <table>, unwraps that table along with its <tbody>, <tr>, and <td> descendants, leaving a blank line before and after each unwrapped element. The legacy news.uams.edu exports used a top-level layout table whose single <td> cell holds the article markup; the table itself carries no semantic value in the destination CMS. Bodies with mixed content alongside the table (a caption shortcode + a table, or paragraphs alongside a table) leave the table alone. Nested <table> elements survive intact (only the outer table and its directly-owned structure unwrap). Same blank-line bookkeeping as UnwrapRemainingDivs/UnwrapDefinitionLists; CollapseExtraLineBreaks (rule 44) collapses any 3+ consecutive \n runs back to 2 so empty rows/cells contribute nothing beyond one normalized blank line.
29 UnwrapSingleCellTable Unwraps every <table> whose structure contains exactly one <tr> and exactly one <td>, leaving a blank line before and after each unwrapped element. Targets the legacy "header banner" single-cell layout table (typically wrapping a centered <p align="center"> title block at the top of an article). The qualifying shape is <table> → (<tbody> →)? single <tr> → single <td>; multi-row, multi-column, multi-<tbody>, or <thead>/<tfoot>-bearing tables are left alone. Nested tables inside the qualifying cell survive intact, only the outer table chain (and its directly-owned tbody/tr/td) unwraps. Same blank-line bookkeeping as UnwrapWholeContentTable/UnwrapRemainingDivs; CollapseExtraLineBreaks (rule 44) collapses stacked padding back to a single blank line. Runs after UnwrapWholeContentTable so the whole-content special case fires first when both rules would apply.
30 UnwrapCaptionOnlyTable Unwraps every <table> whose <td> cells each contain exactly one [caption]…[/caption] shortcode, lifting the captions to the table's parent level and dropping the table / tbody / tr / td wrappers, with \n padding so consecutive captions sit on their own lines separated by a single blank line. Targets the legacy "caption gallery" layout table where each row carries one captioned photo. Match criteria: the table has at least one <td>, and every <td> under it has trimmed text content starting with [caption, ending with [/caption], and containing exactly one opener and one closer. Tables that mix caption and non-caption cells, or that have cells with multiple captions or unbalanced markers, are left alone. Runs after UnwrapWholeContentTable and UnwrapSingleCellTable so those special cases fire first when overlapping. CollapseExtraLineBreaks (rule 44) collapses stacked padding.
31 UnwrapEmbedOnlyParagraph Unwraps every <p> whose meaningful content is exactly one or more <embed> elements, leaving a blank line before and after each unwrapped embed. Multiple embeds inside the same <p> each get their own \n padding, so <p><embed/><embed/></p> unwraps to \n<embed>\n\n<embed>\n (one blank line between them). Match criteria: every child is an <embed>, a whitespace-only text node, or a <br>, and the <p> contains at least one <embed>. Mixed-content paragraphs (<p>Lead. <embed /> Trail.</p>) are left alone. CollapseExtraLineBreaks (rule 44) normalizes stacked padding.
32 ConvertYoutubeEmbedToUrl Converts every <embed> whose src matches the legacy WordPress YouTube-embed shape (http://www.youtube.com/v/{id}… / https://www.youtube.com/v/{id}…) into a standalone YouTube watch URL (https://www.youtube.com/watch?v={id}), leaving a blank line before and after the URL. Trailing &hl=…, &fs=1, ?rel=0, etc. are dropped; the canonical watch URL contains only v=<id>. The destination CMS auto-converts a bare YouTube URL on its own line into an embed. Non-YouTube <embed> elements (other src patterns, no src attribute) are left alone. Runs after UnwrapEmbedOnlyParagraph so a YouTube embed lifted to body level becomes a standalone-URL line; YouTube embeds still trapped inside mixed-content paragraphs are converted in place.
33 CollapseCaptionInternalWhitespace Replaces <br> tags and whitespace runs inside [caption]…[/caption] shortcodes with a single ASCII space, the destination CMS renders caption text as a single flowing line, and the legacy editor's <br> + newline layout inside caption text doesn't survive the transition. Algorithm: depth-first walk tracking inCaption via text-node shortcode markers; each <br> encountered while inside a caption is replaced with a single space; after a $document->normalize(), a second walk collapses runs of \s (whitespace including \n, \r, \t) inside caption spans to a single space. Img attribute values (notably alt) are never touched. Content outside any caption is left alone.
34 StripOrdinalSupTags Unwraps every <sup> element that carries the typographic ordinal suffix st, nd, rd, or th (case-insensitive) immediately after an ASCII digit, 1<sup>st</sup> → 1st, 17<sup>th</sup> → 17th. The preceding-digit check guarantees only ordinal superscripts are flattened; chemical formulas (O<sup>2+</sup>), mathematical exponents (x<sup>n</sup>), footnote markers (Footnote<sup>1</sup>), and other legitimate <sup> uses are left alone.
35 ReplaceBareBrWithBlankLine Replaces every <br> whose direct parent is <body> (i.e. not wrapped inside any other element) with two \n characters, one blank line of plain-text separation. Companion to CollapseBareDoubleBr (rule 17), which collapses runs of 2+ consecutive body-level <br>s into a single blank line; this rule handles the LONE body-level <br> case the run rule conservatively leaves alone. <br> inside a wrapping <p>, <li>, <td>, heading, or any other element is left alone, those carry meaningful inline line-break semantics. Runs after the structural unwrap rules so a <br> that emerges at the body level from one of those unwraps gets caught too.
36 RenameBoldToStrong Renames every remaining inline <b> to its semantic equivalent <strong>, preserving children and attributes.
37 RenameItalicsToEm Renames every <i> to its semantic equivalent <em>, preserving children and attributes.
38 ReplaceCurlyQuotes Replaces MS-Word "smart" curly quotes with straight ASCII equivalents in every text node, “/” → ", ‘/’ → '. Attribute values are left alone.
39 ConvertDoubleHyphenToEmDash Replaces the typographic shorthand -- (space, two hyphens, space) with a space, an em dash (U+2014) and a space. Unspaced -- (e.g. --verbose, foo--bar) is left alone.
40 NormalizeUamsDomainAnchors Canonicalizes <a> tags whose visible text is one of uams.edu, www.uams.edu, uamshealth.com, or www.uamshealth.com (trimmed, case-insensitive). Both the href and the visible text are rewritten to the canonical form, <a href="https://uams.edu/">uams.edu</a> or <a href="https://uamshealth.com/">uamshealth.com</a>. The visible text is the authoritative signal of intent, so anchors that disagree with themselves (e.g. <a href="https://news.uams.edu/some/page">uams.edu</a>) are rewritten to match the text. Anchors containing nested elements (<a><strong>uams.edu</strong></a>) or anchors lacking an href attribute are left alone.
41 TrimLineEdges Strips horizontal whitespace (ASCII space, tab, NBSP) that sits directly adjacent to a \n line break in every text node. NBSP is included so lone-NBSP leading-cruft lines ( &nbsp;Friday, April 25\n) collapse; mid-line NBSPs are preserved by CollapseHorizontalWhitespace. Absolute text-node edges are left alone so inline flows like …named <strong>X</strong> the… keep their meaningful spaces.
42 CollapseHorizontalWhitespace Collapses runs of 2+ horizontal whitespace (space, tab, NBSP) in every text node. Mixed or pure NBSP runs collapse to a single NBSP (preserving the non-breaking intent); pure breaking runs collapse to a single space. Newlines are left alone.
43 StripWhitespaceBeforeBr Strips breaking whitespace (space, tab, newline, CR) at the end of any text node immediately followed by a <br> element. NBSP is preserved.
44 CollapseExtraLineBreaks Collapses runs of 3+ consecutive \n characters down to exactly 2 (one blank line). Calls $document->normalize() first so a newline run split across adjacent text-node siblings (e.g. the \n\n text nodes UnwrapRemainingDivs and UnwrapDefinitionLists insert) is seen as a single run.
45 StripLeadingBreaks Strips leading <br> elements and surrounding whitespace from the start of the body. A leading <br> inside a wrapping <p> is left alone (handled instead by TrimBlockEdges).
46 StripLeadingDateLine Strips a leading press-release date stamp (Nov. 12, 2002, September 12th, 2010 followed by an em dash (U+2014), NOV. 7, 2002 | , …), case-insensitive, from the start of the body. Handles dates as bare leading text nodes or as the leading content of a wrapping <p>.
47 NormalizeCityDateline Normalizes an Arkansas-city dateline at the start of <content:encoded> to the canonical form: CITY, Ark. followed by a space, an em dash (U+2014) and a space. Matches a configurable list of UPPERCASE city names (default: 21 Arkansas cities including LITTLE ROCK, EL DORADO, FORT SMITH, FORREST CITY, MAGNOLIA, MOUNTAIN HOME, PINE BLUFF, VAN BUREN) followed by an optional , ARK./, Ark. and a separator dash (hyphen, en dash, or em dash). City name stays uppercase; Ark. is title-cased; the separator unifies to a space, an em dash and a space. After NormalizeCityDateline runs, Transform::processExcerpt strips that canonical dateline prefix from the resulting plain-text excerpt: the dateline belongs in the body, not the teaser.

Additional rules (UnwrapMsoTables, ConvertContactBlocks, PreserveDataTables) are planned per the ticket's cleanup categories and will land in subsequent iterations.

Clone this wiki locally