-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: show link label and title (#334)
Closes #325 Hello! This PR renders the various link attributes (if they exist) to prevent lose of context/information. It's also nice to automatically style the relevant info so the user doesn't have to manually do it when copying markdown links from other locations. It turns out there's two other link attributes besides the url: - **label** this is the portion between the brackets (a Text child of the Link node) - **title** this is the portion between the double quotes inside the link (this is most often shown as a tooltip when hovering over the link/label) ```markdown * Links look like this [](https://example.com/) * Links with titles look like this [](https://example.com/ "Example") * Links with labels look like this [example](https://example.com/) * Links with titles and labels look like this [example](https://example.com/ "Example") ```  I'm open to formatting suggestions, let me know what you think! We might could display this in a more markdown style (I kinda like this better):  Thanks!
- Loading branch information
Showing
2 changed files
with
82 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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