-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Break link definitions onto multiple lines when needed (#3531)
* Break link definitions onto multiple lines when needed * Simplify the conditional for breaking the title * Don’t print the title if it’s blank * Revert "Don’t print the title if it’s blank" This reverts commit 2a8d0dd. * Add another test * Fix title printing * Second time’s the charm * Third time’s the charm? * Fix snapshot * Prettify * Don’t break unless `proseWrap` is `always` * Test `proseWrap: never` on link references
- Loading branch information
Showing
4 changed files
with
165 additions
and
12 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[just-url]: https://example.com | ||
[url-with-short-title]: https://example.com "title" | ||
[url-with-long-title]: https://example.com "a long, long title. It's really really long. Here have words." | ||
[empty-title]: https://example.com "" | ||
|
||
[long]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx | ||
[long-with-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx "look a title!" | ||
[long-with-empty-title]: https://example.com/a-long-url/another-segment/yet-another-segment/a-really-long-file-name.php.aspx "" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
run_spec(__dirname, ["markdown"], { proseWrap: "always" }); | ||
run_spec(__dirname, ["markdown"], { proseWrap: "never" }); |