You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 2bc8805
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: _TODO.md
+47-4Lines changed: 47 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,12 +202,55 @@ Let's work through each article section by section based on the H2 headers in th
202
202
## Stylings
203
203
204
204
- Better appearance of details and summary elements. The styling in rehype-tailwind is applying to the detail and summary elements generated by remark-custom-blocks.
205
-
- Better list styling and decoration markers
206
-
- Remove dotted underline from abbr elements? Or some other way of indicating abbreviations?
207
205
-[Link](url)[[color=pink target=_blank .centered]] is not picking up styles
208
-
- We have remark-mark-plus to create marked text like ==mark me==. Is the Highlighter component our social highlighter?
206
+
- remark-mark-plus highlight color needs adjusted.
207
+
- Highlighter component not rendering social share modal on hover and focus.
209
208
- Are we using breakpoints correctly - isn't iPhone wider than our `sm` breakpoint?
210
-
- Mermaid theming, horizontal layout for desktop, vertical for mobile, using groups like in Code Tabs to add the media selectors e.g. `[g1:desktop]`
209
+
- Add scroll bar under header to show how far down you are on the page while reading
210
+
211
+
## Add theming to Mermaid
212
+
213
+
Mermaid theming, horizontal layout for desktop, vertical for mobile, using groups like in Code Tabs to add the media selectors e.g. `[g1:desktop]`
211
214
212
215
`graph TD`: Top-to-Bottom (Vertical).
213
216
`graph LR`: Left-to-Right (Horizontal).
217
+
218
+
`strategy: 'pre-mermaid'` in Mermaid config in `astro.config.ts`
219
+
220
+
This strategy replaces the element with a <preclass="mermaid"> element with only the diagram as its child. Given the example, this yields:
221
+
222
+
```html
223
+
<html>
224
+
<head>
225
+
<metacharset="utf-8" />
226
+
</head>
227
+
<body>
228
+
<preclass="mermaid">
229
+
graph TD;
230
+
A-->B;
231
+
A-->C;
232
+
B-->D;
233
+
C-->D;
234
+
</pre>
235
+
<preclass="mermaid">
236
+
graph TD;
237
+
A-->B;
238
+
A-->C;
239
+
B-->D;
240
+
C-->D;
241
+
</pre>
242
+
</body>
243
+
</html>
244
+
```
245
+
246
+
This allows Mermaid to render the diagram on the client side, for example using:
[](https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv)
28
-
```
29
-
30
-
[](https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv)
31
-
32
-
### `kbd`
33
-
34
-
This is a default HTML markup, just adding it here to not forget to use it when needed:
35
-
36
-
```markdown
37
-
<p>
38
-
You can also create a new document by pressing the
39
-
<kbd><kbd>Ctrl</kbd>+<kbd>N</kbd></kbd> shortcut.
40
-
</p>
41
-
```
42
-
43
-
<p>
44
-
You can also create a new document by pressing the
45
-
<kbd><kbd>Ctrl</kbd>+<kbd>N</kbd></kbd> shortcut.
46
-
</p>
47
-
48
-
### Links
49
-
50
-
```markdown
51
-
My favorite search engine is [Duck Duck Go](https://duckduckgo.com).
52
-
53
-
Visit our [homepage](/) or read more [articles](/articles) to explore additional content.
54
-
```
55
-
56
-
My favorite search engine is [Duck Duck Go](https://duckduckgo.com).
57
-
58
-
Visit our [homepage](/) or read more [articles](/articles) to explore additional content.
59
-
60
16
### Lists
61
17
62
18
Unordered lists:
@@ -1414,3 +1370,49 @@ Dashes (`---`):
1414
1370
Underscores ()`___`):
1415
1371
1416
1372
_________________
1373
+
1374
+
### Images
1375
+
1376
+
Use a relative path from the folder if the image is in src/assets (e.g. `../../../assets/images/typescript-downloadable-icon.png`) and will be optimized in the build. Images in the public folder are not optimized and can be referenced with an absolute path like `shiprock.svg` below.
0 commit comments