@@ -182,6 +182,7 @@ void main() {
182182 Class classWithHtml;
183183 late final Method blockHtml;
184184 late final Method inlineHtml;
185+ late final Method customCalloutBoxHtml;
185186 late final PackageGraph packageGraph;
186187 late final Library exLibrary;
187188
@@ -198,6 +199,7 @@ void main() {
198199 classWithHtml = exLibrary.classes.named ('SanitizableHtml' );
199200 blockHtml = classWithHtml.instanceMethods.named ('blockHtml' );
200201 inlineHtml = classWithHtml.instanceMethods.named ('inlineHtml' );
202+ customCalloutBoxHtml = classWithHtml.instanceMethods.named ('customCalloutBoxHtml' );
201203 for (var modelElement in packageGraph.localPublicLibraries
202204 .expand ((l) => l.allModelElements)) {
203205 // Accessing this getter triggers documentation-processing.
@@ -240,6 +242,10 @@ void main() {
240242 test ('removes bad block HTML' , () {
241243 expect (blockHtml.documentationAsHtml, isNot (contains ('bad-idea' )));
242244 });
245+
246+ test ('can have callout-box HTML' , () {
247+ expect (customCalloutBoxHtml.documentationAsHtml, contains ('<callout-box>' ));
248+ });
243249 });
244250
245251 group ('HTML Injection when allowed' , () {
0 commit comments