-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add external links class option to Markdown configuration (#2717)
* Add external links class option to Markdown configuration * Validate external links class * Rename external link test snapshots
- Loading branch information
Showing
13 changed files
with
89 additions
and
26 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
6 changes: 2 additions & 4 deletions
6
...wn__can_use_external_links_options-5.snap → .../markdown__external_link_all_options.snap
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,8 +1,6 @@ | ||
--- | ||
source: components/rendering/tests/markdown.rs | ||
assertion_line: 168 | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
|
||
snapshot_kind: text | ||
--- | ||
<p><a rel="noopener nofollow noreferrer" target="_blank" href="https://google.com">https://google.com</a></p> | ||
|
6 changes: 6 additions & 0 deletions
6
components/markdown/tests/snapshots/markdown__external_link_class.snap
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,6 @@ | ||
--- | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
snapshot_kind: text | ||
--- | ||
<p><a class="external" href="https://google.com">https://google.com</a></p> |
6 changes: 6 additions & 0 deletions
6
components/markdown/tests/snapshots/markdown__external_link_class_and_target_blank.snap
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,6 @@ | ||
--- | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
snapshot_kind: text | ||
--- | ||
<p><a class="external" rel="noopener" target="_blank" href="https://google.com">https://google.com</a></p> |
6 changes: 2 additions & 4 deletions
6
...wn__can_use_external_links_options-3.snap → ...ts/markdown__external_link_no_follow.snap
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,8 +1,6 @@ | ||
--- | ||
source: components/rendering/tests/markdown.rs | ||
assertion_line: 155 | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
|
||
snapshot_kind: text | ||
--- | ||
<p><a rel="nofollow" href="https://google.com">https://google.com</a></p> | ||
|
6 changes: 2 additions & 4 deletions
6
...down__can_use_external_links_options.snap → ...s/markdown__external_link_no_options.snap
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,8 +1,6 @@ | ||
--- | ||
source: components/rendering/tests/markdown.rs | ||
assertion_line: 144 | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
|
||
snapshot_kind: text | ||
--- | ||
<p><a href="https://google.com">https://google.com</a></p> | ||
|
6 changes: 2 additions & 4 deletions
6
...wn__can_use_external_links_options-4.snap → .../markdown__external_link_no_referrer.snap
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,8 +1,6 @@ | ||
--- | ||
source: components/rendering/tests/markdown.rs | ||
assertion_line: 161 | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
|
||
snapshot_kind: text | ||
--- | ||
<p><a rel="noreferrer" href="https://google.com">https://google.com</a></p> | ||
|
6 changes: 2 additions & 4 deletions
6
...wn__can_use_external_links_options-2.snap → ...markdown__external_link_target_blank.snap
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,8 +1,6 @@ | ||
--- | ||
source: components/rendering/tests/markdown.rs | ||
assertion_line: 149 | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
|
||
snapshot_kind: text | ||
--- | ||
<p><a rel="noopener" target="_blank" href="https://google.com">https://google.com</a></p> | ||
|
6 changes: 6 additions & 0 deletions
6
components/markdown/tests/snapshots/markdown__internal_link_no_class.snap
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,6 @@ | ||
--- | ||
source: components/markdown/tests/markdown.rs | ||
expression: body | ||
snapshot_kind: text | ||
--- | ||
<p><a href="https://getzola.org/about/">about</a></p> |
6 changes: 6 additions & 0 deletions
6
components/markdown/tests/snapshots/markdown__internal_link_without_class.snap.new
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,6 @@ | ||
--- | ||
source: components/markdown/tests/markdown.rs | ||
assertion_line: 148 | ||
expression: body | ||
--- | ||
<p><a href="https://getzola.org/about/">about</a></p> |
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