Skip to content

Commit

Permalink
add test of paragraphs, formatting, and spans
Browse files Browse the repository at this point in the history
This resolves #25, I think. :-)

The issue said I should test different spans across lines. I'm not
entirely sure what about them I wanted to test... but this tests the
markdown that was in the issue.
  • Loading branch information
yshavit authored Aug 12, 2024
1 parent a2a6160 commit 74c9a52
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tests/md_cases/paragraph_spans.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[given]
md = '''
Hello, _world_
**in one** paragraph.
(Note also plaintext behavior.)
Second paragraph
'''

[chained]
needed = false


[expect."echo"]
cli_args = []
output = '''
Hello, _world_
**in one** paragraph.
(Note also plaintext behavior.)
Second paragraph
'''

[expect."paragraphs"]
cli_args = ["P: *"]
# Check that everything in the first paragraph is indeed in one paragraph.
# (The second paragraph is there just so we can see the thematic break between them, to make it even more obvious
# that the selector has selected two distinct entities.)
output = '''
Hello, _world_
**in one** paragraph.
(Note also plaintext behavior.)
-----
Second paragraph
'''

0 comments on commit 74c9a52

Please sign in to comment.