InlineTagProcessor: Add a test for ignoring tags in code blocks

Skipping it for now since it fails

Related to #290
This commit is contained in:
Vishesh Handa
2021-07-31 17:20:26 +02:00
parent b7af4604df
commit 4606268a2c

View File

@ -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);
}