FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix link reference definition parsing with invalid title by robinst · Pull Request #318 · commonmark/commonmark-java · GitHub

Repository navigation

Fix link reference definition parsing with invalid title - #318

Merged
robinst merged 1 commit into
mainfrom
issue-315
Apr 6, 2024
Merged

robinst merged 1 commit into
mainfrom
issue-315

Conversation

robinst commented Apr 6, 2024

Copy link
Copy Markdown
Collaborator

An input like this:

[foo]: /url
"title" bad

Means the second line is just a paragraph because only spaces/tabs are allowed after a title. The parser used to set the title to "title" in this case and assign the source span of the second line to the definition, which is wrong.

Fixes #315.

An input like this:

```
[foo]: /url
"title" bad
```

Means the second line is just a paragraph because only spaces/tabs are allowed
after a title. The parser used to set the title to "title" in this case and
assign the source span of the second line to the definition, which is wrong.

Fixes #315.

codecov Bot commented Apr 6, 2024 •
edited
Loading

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.25%. Comparing base (ef730f6) to head (b570e1b).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #318   +/-   ##
=========================================
  Coverage     94.25%   94.25%           
  Complexity      254      254           
=========================================
  Files           131      131           
  Lines          4178     4181    +3     
  Branches        614      614           
=========================================
+ Hits           3938     3941    +3     
  Misses          127      127           
  Partials        113      113           
Files Coverage Δ
...onmark/internal/LinkReferenceDefinitionParser.java 97.03% <100.00%> (+0.06%) ⬆️

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LinkReferenceDefinition takes over sourceSpans from a block following it

1 participant


Back | FazBrowse Home | New Git URL