mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-25 00:00:26 +08:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user