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 e0fb7ce
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: _TODO.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,13 +201,11 @@ Let's work through each article section by section based on the H2 headers in th
201
201
202
202
## Stylings
203
203
204
-
- More space below headings
205
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.
206
205
- Better list styling and decoration markers
207
206
- Remove dotted underline from abbr elements? Or some other way of indicating abbreviations?
208
207
-[Link](url)[[color=pink target=_blank .centered]] is not picking up styles
209
208
- We have remark-mark-plus to create marked text like ==mark me==. Is the Highlighter component our social highlighter?
210
-
- Search icon is too large now
211
209
- Make sure underline style in Core Markdown section is correct
212
210
- Are we using breakpoints correctly - isn't iPhone wider than our `sm` breakpoint?
213
211
- Mermaid theming, horizontal layout for desktop, vertical for mobile, using groups like in Code Tabs to add the media selectors e.g. `[g1:desktop]`
Copy file name to clipboardExpand all lines: src/content/articles/demo/index.mdx
+60-24Lines changed: 60 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,8 @@ import Demo from '@components/Test/Demo.mdx'
15
15
16
16
### Blockquotes
17
17
18
+
Quotation marks are added by CSS, so should not be included on the blockquote text.
19
+
18
20
> This is a blockquote. Use it for quotes, citations, or to highlight important statements from external sources.
19
21
20
22
Nested blockquotes:
@@ -29,9 +31,9 @@ Nested blockquotes:
29
31
>
30
32
>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
31
33
32
-
#### Blockquotes with internal remark-attribution plugin
34
+
__Blockquotes with attribution__
33
35
34
-
The plugin allows to provide an attribution for a quotation:
36
+
The pluginwill provide an attribution for a quotation if it is prefixed with an em dash. To include a date, put them in trailing parentheses:
35
37
36
38
```markdown
37
39
> That's one small step for [a] man, one giant leap for mankind.
@@ -41,26 +43,32 @@ The plugin allows to provide an attribution for a quotation:
41
43
> That's one small step for [a] man, one giant leap for mankind.
42
44
> — Neil Armstrong (1969, July 21)
43
45
46
+
```markdown
47
+
> That's one small step for [a] man, one giant leap for mankind.
48
+
> — Neil Armstrong
49
+
```
50
+
51
+
> Nothing inspires forgiveness quite like revenge.
52
+
> — Scott Adams
53
+
44
54
Compiles to the following HTML:
45
55
46
56
```html
47
-
The generated markup is not only accessible for screen readers but allows you to style the attribution line however you like:
48
-
49
-
<figureclass="c-blockquote">
57
+
<figureclass="blockquote">
50
58
<blockquote>
51
59
<p>
52
60
That's one small step for [a] man, one giant leap for mankind.
53
61
</p>
54
62
</blockquote>
55
-
<figcaptionclass="c-blockquote__attribution">
63
+
<figcaptionclass="blockquote-attribution">
56
64
Neil Armstrong (1969, July 21)
57
65
</figcaption>
58
66
</figure>
59
67
```
60
68
61
-
#### Blockquotes with remark-captions
69
+
__Blockquotes with captions__
62
70
63
-
By default it wraps the elements code, image, table and blockquote in a `<figure>` element, and adds a `<figcaption>` block as the last child. You can configure it to work on other elements by changing the keywords.
71
+
For blockquotes, captions are handled by the internal `remark-blockquote` plugin so they can be combined with an attribution.
64
72
65
73
**Blockquote caption**
66
74
@@ -72,16 +80,46 @@ By default it wraps the elements code, image, table and blockquote in a `<figure
72
80
> Some blockquote text that will have a caption
73
81
> Source: The caption text that will appear under the blockquote
The plugin allows to provide an attribution for a quotation:
440
+
The plugin allows you to provide an attribution for a quotation:
403
441
404
442
```markdown
405
443
> That's one small step for [a] man, one giant leap for mankind.
@@ -412,36 +450,34 @@ The plugin allows to provide an attribution for a quotation:
412
450
Should compile to the following HTML:
413
451
414
452
```html
415
-
The generated markup is not only accessible for screen readers but allows you to style the attribution line however you like:
416
-
417
-
<figureclass="c-blockquote">
453
+
<figureclass="blockquote">
418
454
<blockquote>
419
455
<p>
420
456
That's one small step for [a] man, one giant leap for mankind.
421
457
</p>
422
458
</blockquote>
423
-
<figcaptionclass="c-blockquote__attribution">
459
+
<figcaptionclass="blockquote-attribution">
424
460
Neil Armstrong (1969, July 21)
425
461
</figcaption>
426
462
</figure>
427
463
```
428
464
429
465
### remark-captions
430
466
431
-
By default it wraps the elements code, image, table and blockquote in a `<figure>` element, and adds a `<figcaption>` block as the last child. You can configure it to work on other elements by changing the keywords.
432
-
433
-
__Blockquote example is moved to the Blockquote section.__
467
+
By default it wraps the elements code, image, and table in a `<figure>` element, and adds a `<figcaption>` block as the last child. You can configure it to work on other elements by changing the keywords.
434
468
435
469
**Code caption**
436
470
471
+
The caption line is prefixed with `Code:` and added below the code block with no blank line:
472
+
437
473
```ts
438
474
exportconst answer =42
439
475
```
440
476
Code: This caption appears under the code block
441
477
442
478
**Table caption**
443
479
444
-
Note: a blank line is required before `Table:` so it parses as a paragraph after the table.
480
+
Note: a blank line is required before tje `Table:` prefixed line so it parses as a paragraph after the table.
445
481
446
482
```markdown
447
483
| a | b |
@@ -459,7 +495,7 @@ Table: This caption appears under the table
459
495
460
496
**Image caption**
461
497
462
-
Note: the `Figure:`caption must be in the same paragraph as the image (no blank line).
498
+
Note: the `Figure:`prefixed line must be in the same paragraph as the image (no blank line).
0 commit comments