Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 8 additions & 24 deletions packages/comark/SPEC/GFM/alert.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,44 +38,28 @@ timeout:
{
"as": "caution"
},
[
"p",
{},
"Advises about risks or negative outcomes of certain actions."
]
"Advises about risks or negative outcomes of certain actions."
],
[
"blockquote",
{
"as": "important"
},
[
"p",
{},
"Key information users need to know to achieve their goal."
]
"Key information users need to know to achieve their goal."
],
[
"blockquote",
{
"as": "note"
},
[
"p",
{},
"Useful information that users should know, even when skimming content."
]
"Useful information that users should know, even when skimming content."
],
[
"blockquote",
{
"as": "tip"
},
[
"p",
{},
"Helpful advice for doing things better or more easily."
]
"Helpful advice for doing things better or more easily."
],
[
"blockquote",
Expand All @@ -101,16 +85,16 @@ timeout:

```html
<blockquote as="caution">
<p>Advises about risks or negative outcomes of certain actions.</p>
Advises about risks or negative outcomes of certain actions.
</blockquote>
<blockquote as="important">
<p>Key information users need to know to achieve their goal.</p>
Key information users need to know to achieve their goal.
</blockquote>
<blockquote as="note">
<p>Useful information that users should know, even when skimming content.</p>
Useful information that users should know, even when skimming content.
</blockquote>
<blockquote as="tip">
<p>Helpful advice for doing things better or more easily.</p>
Helpful advice for doing things better or more easily.
</blockquote>
<blockquote as="warning">
<p>Urgent info that needs immediate user attention to avoid problems.</p>
Expand Down
142 changes: 142 additions & 0 deletions packages/comark/SPEC/GFM/wrapped-alert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
timeout:
parse: 15ms
html: 5ms
markdown: 5ms
options:
autoUnwrap: false
---

## Input

```md
> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.
>
> Stay sheltered. Don't leave your home. It's very dangerous outside. Bombs will be dropping everywhere.
```

## AST

```json
{
"frontmatter": {},
"meta": {},
"nodes": [
[
"blockquote",
{
"as": "caution"
},
[
"p",
{},
"Advises about risks or negative outcomes of certain actions."
]
],
[
"blockquote",
{
"as": "important"
},
[
"p",
{},
"Key information users need to know to achieve their goal."
]
],
[
"blockquote",
{
"as": "note"
},
[
"p",
{},
"Useful information that users should know, even when skimming content."
]
],
[
"blockquote",
{
"as": "tip"
},
[
"p",
{},
"Helpful advice for doing things better or more easily."
]
],
[
"blockquote",
{
"as": "warning"
},
[
"p",
{},
"Urgent info that needs immediate user attention to avoid problems."
],
[
"p",
{},
"Stay sheltered. Don't leave your home. It's very dangerous outside. Bombs will be dropping everywhere."
]
]
]
}
```

## HTML

```html
<blockquote as="caution">
<p>Advises about risks or negative outcomes of certain actions.</p>
</blockquote>
<blockquote as="important">
<p>Key information users need to know to achieve their goal.</p>
</blockquote>
<blockquote as="note">
<p>Useful information that users should know, even when skimming content.</p>
</blockquote>
<blockquote as="tip">
<p>Helpful advice for doing things better or more easily.</p>
</blockquote>
<blockquote as="warning">
<p>Urgent info that needs immediate user attention to avoid problems.</p>
<p>Stay sheltered. Don't leave your home. It's very dangerous outside. Bombs will be dropping everywhere.</p>
</blockquote>
```

## Markdown

```md
> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.
>
> Stay sheltered. Don't leave your home. It's very dangerous outside. Bombs will be dropping everywhere.
```
8 changes: 2 additions & 6 deletions packages/comark/SPEC/MDC/component-nested.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ First Paragraph
[
"child",
{},
[
"p",
{},
"Second Paragraph"
]
"Second Paragraph"
]
]
]
Expand All @@ -52,7 +48,7 @@ First Paragraph
<component>
<p>First Paragraph</p>
<child>
<p>Second Paragraph</p>
Second Paragraph
</child>
</component>
```
Expand Down
8 changes: 2 additions & 6 deletions packages/comark/SPEC/MDC/component-nested2.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,7 @@ First Paragraph
[
"child",
{},
[
"p",
{},
"Second Paragraph"
]
"Second Paragraph"
]
]
]
Expand All @@ -52,7 +48,7 @@ First Paragraph
<component>
<p>First Paragraph</p>
<child>
<p>Second Paragraph</p>
Second Paragraph
</child>
</component>
```
Expand Down
8 changes: 2 additions & 6 deletions packages/comark/SPEC/MDC/component-nested3.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ First Paragraph
[
"grand-child",
{},
[
"p",
{},
"Third Paragraph"
]
"Third Paragraph"
]
]
]
Expand All @@ -67,7 +63,7 @@ First Paragraph
<child>
<p>Second Paragraph</p>
<grand-child>
<p>Third Paragraph</p>
Third Paragraph
</grand-child>
</child>
</component>
Expand Down
2 changes: 0 additions & 2 deletions packages/comark/SPEC/MDC/component-nested4.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ timeout:
parse: 50ms
html: 5ms
markdown: 5ms
options:
autoUnwrap: true
---

## Input
Expand Down
16 changes: 4 additions & 12 deletions packages/comark/SPEC/MDC/component-short+block.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,14 @@ Second Paragraph
{
"name": "first"
},
[
"p",
{},
"First Paragraph"
]
"First Paragraph"
],
[
"template",
{
"name": "second"
},
[
"p",
{},
"Second Paragraph"
]
"Second Paragraph"
]
]
]
Expand All @@ -66,10 +58,10 @@ Second Paragraph
<no-sugar-syntax></no-sugar-syntax>
<component>
<template name="first">
<p>First Paragraph</p>
First Paragraph
</template>
<template name="second">
<p>Second Paragraph</p>
Second Paragraph
</template>
</component>
```
Expand Down
8 changes: 2 additions & 6 deletions packages/comark/SPEC/MDC/component-slot-default-named.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ Default slot content
{
"name": "default"
},
[
"p",
{},
"Default slot content"
]
"Default slot content"
]
]
]
Expand All @@ -45,7 +41,7 @@ Default slot content
```html
<component>
<template name="default">
<p>Default slot content</p>
Default slot content
</template>
</component>
```
Expand Down
8 changes: 2 additions & 6 deletions packages/comark/SPEC/MDC/component-slot-default.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@ Default slot content
[
"component",
{},
[
"p",
{},
"Default slot content"
]
"Default slot content"
]
]
}
Expand All @@ -37,7 +33,7 @@ Default slot content

```html
<component>
<p>Default slot content</p>
Default slot content
</component>
```

Expand Down
Loading
Loading