Skip to content

Commit

Permalink
feat: remove/replace font <style>/<span>s
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiddyLimit committed May 10, 2023
1 parent eb9a65a commit 6bf38a3
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 61 deletions.
9 changes: 1 addition & 8 deletions _node/clean-html.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@ class BrewCleanerHtml {

static _OPTS_SANITIZE = {
allowedTags: [
"span",
"style",

// region Custom things which look like tags
"<$name$>",
// endregion
],
allowedAttributes: {
"span": ["class"],
"style": [],
},
allowVulnerableTags: true, // squash warnings about `<style>`
allowedAttributes: {},
};

static async _pUpdateDir (dir) {
Expand Down
13 changes: 8 additions & 5 deletions adventure/JVC Parry; Call from the Deep.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
]
}
],
"fonts": {
"TentrixCipher": "https://rawcdn.githack.com/TheGiddyLimit/homebrew/24050b6ae6ef4ce05edf40d985a405854049eec1/_font/CallfromtheDeep/Tentrix Cipher.otf"
},
"status": "ready",
"dateAdded": 1579711362,
"dateLastModified": 1683488746,
Expand Down Expand Up @@ -10752,7 +10755,7 @@
"id": "t15",
"page": 137,
"entries": [
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'treasure' in Tentrix's cipher: <style>.tentrixcipher { font-family: 'TentrixCipher' } @font-face { font-family: 'TentrixCipher'; src: url('https://rawcdn.githack.com/TheGiddyLimit/homebrew/24050b6ae6ef4ce05edf40d985a405854049eec1/_font/CallfromtheDeep/Tentrix Cipher.otf') format('opentype') }</style><span class=\"tentrixcipher\">treasure</span>.",
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'treasure' in Tentrix's cipher: {@font treasure|TentrixCipher}.",
"When characters enter, read or paraphrase the following:",
{
"type": "insetReadaloud",
Expand All @@ -10777,7 +10780,7 @@
"id": "t16",
"page": 137,
"entries": [
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'store' in Tentrix's cipher: <span class=\"tentrixcipher\">store</span>.",
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'store' in Tentrix's cipher: {@font store|TentrixCipher}.",
"When characters enter, read or paraphrase the following:",
{
"type": "insetReadaloud",
Expand All @@ -10797,7 +10800,7 @@
"name": "Secret Door",
"entries": [
"Characters with a passive Wisdom ({@skill Perception}) score of 15 or higher notice an inconsistency with the panelling of this room. Characters who succeed on a successful DC 15 Intelligence ({@skill Investigation}) check discover small, hidden hinges, a keyhole, and a note which says 'BEWARE SMOKEPOWDER' in {@language Tentrix's cipher|CallfromtheDeep}:",
"<span class=\"tentrixcipher\">BEWARE SMOKEPOWDER</span>",
"{@font BEWARE SMOKEPOWDER|TentrixCipher}",
"The door has two keys; one owned by Powder, the other by Tentrix. The door can be opened with a successful DC 10 Strength check, or a DC 20 Dexterity check using {@item thieves' tools|phb}.",
"The room contains five kegs of {@item smokepowder|WDH} ({@adventure appendix C|CallfromtheDeep|13}). A character that opens the door with a Strength check barges through the secret door and runs the risk of colliding with the kegs. The creature must succeed on a DC 20 Dexterity check or hit the barrels, causing them to explode."
]
Expand Down Expand Up @@ -10838,7 +10841,7 @@
"id": "t18",
"page": 138,
"entries": [
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'prison' in {@language Tentrix's cipher|CallfromtheDeep}: <span class=\"tentrixcipher\">prison</span>",
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel is the word 'prison' in {@language Tentrix's cipher|CallfromtheDeep}: {@font prison|TentrixCipher}",
"When characters enter, read or paraphrase the following:",
{
"type": "insetReadaloud",
Expand Down Expand Up @@ -10871,7 +10874,7 @@
"id": "t19",
"page": 138,
"entries": [
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel in {@language Common} is the word 'gold'. Beneath this is the word 'cursed' written in Tentrix's cipher: <span class=\"tentrixcipher\">cursed</span>.",
"The door to this chamber is barred by a mechanism connected to a pressure plate in {@area t12|t12}. Characters can open the door without compressing the plate with a successful DC 25 Strength check. Written on the lintel in {@language Common} is the word 'gold'. Beneath this is the word 'cursed' written in Tentrix's cipher: {@font cursed|TentrixCipher}.",
"When characters enter, read or paraphrase the following:",
{
"type": "insetReadaloud",
Expand Down
Loading

0 comments on commit 6bf38a3

Please sign in to comment.