yapp 4.0.90 → 4.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/example.html +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -199,8 +199,8 @@ You do not have to provide this, rendering Yapp's styles will do so, but it is r
|
|
|
199
199
|
You can also preload the font files by putting the following in the header of the containing HTML page:
|
|
200
200
|
|
|
201
201
|
```
|
|
202
|
-
<link rel="preload" href="${host}/css/woff2/FiraCode-Bold.woff2" as="font" type="font/woff2" crossorigin>
|
|
203
|
-
<link rel="preload" href="${host}/css/woff2/FiraCode-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
|
202
|
+
<link rel="preload" href="${host}/css/woff2/FiraCode-Bold.woff2" as="font" type="font/woff2" crossorigin >
|
|
203
|
+
<link rel="preload" href="${host}/css/woff2/FiraCode-Regular.woff2" as="font" type="font/woff2" crossorigin >
|
|
204
204
|
```
|
|
205
205
|
|
|
206
206
|
A `host` variable has been included here, the value of which should be the same as the `host` argument passed to the `firaCodeStyle()` function mentioned in the section on syntax styles further down. You may need to change the markup in the above snippet, depending on your templating library.
|
package/example.html
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<title>Yapp</title>
|
|
5
5
|
|
|
6
|
-
<link rel="preload" href="css/woff2/FiraCode-Bold.woff2" as="font" type="font/woff2" crossorigin>
|
|
7
|
-
<link rel="preload" href="css/woff2/FiraCode-Regular.woff2" as="font" type="font/woff2" crossorigin>
|
|
6
|
+
<link rel="preload" href="css/woff2/FiraCode-Bold.woff2" as="font" type="font/woff2" crossorigin >
|
|
7
|
+
<link rel="preload" href="css/woff2/FiraCode-Regular.woff2" as="font" type="font/woff2" crossorigin >
|
|
8
8
|
|
|
9
9
|
<style>
|
|
10
10
|
|