-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CORP headers to media repo (#1197)
* Add CORP headers to media repo MSC: matrix-org/matrix-spec-proposals#3828 * Write weird CSS rules to make added-in work inline in the CS spec Even though our content doesn't need 2 paragraphs, it's good to have the capability to render it in the future. * Remove test paragraph * Refine prose * spelling is key
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add `Cross-Origin-Resource-Policy` (CORP) headers to media repository, as per [MSC3828](https://github.com/matrix-org/matrix-spec-proposals/pull/3828). |
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,22 @@ | ||
{{/* | ||
|
||
"Temporary" shortcode for rendering paragraphs which want/need inline added-in tags. It is | ||
assumed that your content is described as follows: | ||
|
||
{{% boxes/added-in-paragraph %}} | ||
{{< added-in v="1.4" >}} Your text here | ||
|
||
{{< added-in v="1.4" >}} Your other text here | ||
{{% /boxes/added-in-paragraph %}} | ||
|
||
The assumption is that at a later date this added-in-paragraph shortcode can be removed, making | ||
the angle bracket-defined added-in shortcodes *just work*. | ||
|
||
It is important that each new "content" paragraph (the bit after added-in) is preceded with | ||
and added-in, otherwise you might find your text being weirdly merged. | ||
|
||
This exists while the added-in shortcode cannot be inline in the client-server spec. | ||
See https://github.com/matrix-org/matrix-spec/issues/1204 | ||
|
||
*/}} | ||
{{ partial "alert" (dict "type" "added-in-paragraph" "content" .Inner) }} |