mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
b70edd2768
Three ways a callout could be misparsed: - A title quoted with `'` or a backtick was dropped, leaving an empty heading. Two callouts lose their title on angular.dev today, on guide/forms/template-driven-forms and guide/i18n/prepare. The first has to use single quotes because its title contains `"pristine"`. - A title containing `>` was dropped, because the attribute capture stopped at the first `>` even inside a quoted value. - The severity was matched anywhere in the tag, so a title such as "Why this is important" silently rendered an important callout. Scan attributes with quoting in mind, accept all three quote characters as #69268 did for docs-code-block, and match the severity flags against the tag with attribute values removed. The i18n callout also spelled the attribute `header`, which the extension has never read.