-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds rule 19 Google Drive image links (#26)
* Adds rule 19 no code in headings Adds issue covers standard RST syntax, MD syntax, MyST syntax, and raw HTML syntax Adds testing for rule 19 Removes superfluous field from rule 09 * Update 019-no-google-drive-images.yml --------- Co-authored-by: Nick Veitch <[email protected]>
- Loading branch information
1 parent
9c5ee4f
commit 20cc3e9
Showing
4 changed files
with
54 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,15 @@ | ||
# 19 - No Google Drive links | ||
|
||
extends: existence | ||
message: "Don't use images from Google Drive." | ||
scope: raw | ||
nonword: true | ||
level: warning | ||
tokens: | ||
- '!\[[^\n]*\]\([\w\.:\/\-=\? \"] (drive.google|drive.usercontent.google)[\w\.:\/\-=\? \"] \)' | ||
- '<[\w\.:\/-=? "] (drive.google|drive.usercontent.google)[\w\.:\/\-=? "] >' | ||
- '{image}[\w\.:\/\-=? "] (drive.google|drive.usercontent.google)[\w\.:\/\-=? "] ' | ||
- '{figure}[\w\.:\/\-=? "] (drive.google|drive.usercontent.google)[\w\.:\/\-=? "] ' | ||
- '.. image::[\w\.:\/\-=? "] (drive.google|drive.usercontent.google)[\w\.:\/\-=? "] ' | ||
- '.. figure::[\w\.:\/\-=? "] (drive.google|drive.usercontent.google)[\w\.:\/\-=? "] ' | ||
|
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,23 @@ | ||
# Some test | ||
|
||
![This is some text](https://drive.usercontent.google.com/download?id=1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN) | ||
![This is some text](https://drive.google.com/file/d/1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN) | ||
![This is some text](https://www.test.com/etc_sboqo-asboucouqfe/) | ||
|
||
<img src="https://drive.google.com/file/d/1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN" alt="fishy" width="200px" class="bg-primary"> | ||
|
||
|
||
```{image} https://drive.google.com/file/d/1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN | ||
:alt: fishy | ||
:class: bg-primary | ||
:width: 200px | ||
:align: center | ||
``` | ||
|
||
|
||
```{figure} https://drive.usercontent.google.com/download?id=1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN | ||
:alt: fishy | ||
:class: bg-primary | ||
:width: 200px | ||
:align: center | ||
``` |
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,16 @@ | ||
Some text | ||
========= | ||
|
||
.. image:: https://drive.usercontent.google.com/download?id=1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN | ||
|
||
:alt: fishy | ||
:class: bg-primary | ||
:width: 200px | ||
:align: center | ||
|
||
.. figure:: https://drive.google.com/file/d/1l7YBeMeR9iCSGGR8gbiWXkf1zPzQg2lN | ||
|
||
:alt: fishy | ||
:class: bg-primary | ||
:width: 200px | ||
:align: center |