From 4606268a2c268a90194aeb41cb8e57e3da0cdacf Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Sat, 31 Jul 2021 17:20:26 +0200 Subject: [PATCH] InlineTagProcessor: Add a test for ignoring tags in code blocks Skipping it for now since it fails Related to #290 --- test/processors/inline_tags_test.dart | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/processors/inline_tags_test.dart b/test/processors/inline_tags_test.dart index e53ecc01..8334e13e 100644 --- a/test/processors/inline_tags_test.dart +++ b/test/processors/inline_tags_test.dart @@ -175,4 +175,22 @@ Provides a combined #structure\tof `DateTime` with an `Offset` property defining expect(tags, {'csharp', 'structure'}); }); + + test("Ignore Code Blocks", () { + var body = """# DateTimeOffset +#csharp + +`#foo double #inside hell` +``` +Provides a combined #structure +``` + +## Then *bold* **italic**. +"""; + + var p = InlineTagsProcessor(tagPrefixes: {'#'}); + var tags = p.extractTags(body); + + expect(tags, {'csharp'}); + }, skip: true); }