-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format markdown component content (#63)
- Loading branch information
1 parent
643703c
commit f7cf7c1
Showing
5 changed files
with
140 additions
and
74 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'prettier-plugin-astro': patch | ||
--- | ||
|
||
Format markdown component content |
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
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,47 @@ | ||
--- | ||
const text = "lorem"; | ||
import MarkdownComponent from "astro/components/Markdown.astro" | ||
--- | ||
<div> | ||
<MarkdownComponent> | ||
# Header | ||
|
||
## lorem lorem | ||
lorem | ||
<Fragment>test</Fragment> | ||
<div>lorem</div> | ||
lorem | ||
|
||
{text + "lorem"}_Look,_ code blocks are formatted *too!* | ||
|
||
``` js | ||
function identity(x) { return x } | ||
``` | ||
|
||
```css | ||
.bd-examples {margin-right: -.75rem;margin-left: -.75rem | ||
} | ||
|
||
.bd-examples>[class^="col-"] { | ||
padding-right: .75rem; | ||
} | ||
``` | ||
|
||
Pilot|Airport|Hours | ||
--|:--:|--: | ||
John Doe|SKG|1338 | ||
Jane Roe|JFK|314 | ||
|
||
- - - - - - - - - - - - - - - | ||
|
||
+ List | ||
+ with a [link] (/to/somewhere) | ||
+ and [another one] | ||
|
||
|
||
[another one]: http://example.com 'Example title' | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. | ||
</MarkdownComponent> | ||
</div> |
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,53 @@ | ||
--- | ||
const text = "lorem"; | ||
import MarkdownComponent from "astro/components/Markdown.astro"; | ||
--- | ||
|
||
<div> | ||
<MarkdownComponent> | ||
# Header | ||
|
||
## lorem lorem | ||
|
||
lorem | ||
<Fragment>test</Fragment> | ||
|
||
<div>lorem</div> | ||
lorem | ||
|
||
{text + "lorem"}_Look,_ code blocks are formatted _too!_ | ||
|
||
```js | ||
function identity(x) { | ||
return x; | ||
} | ||
``` | ||
|
||
```css | ||
.bd-examples { | ||
margin-right: -0.75rem; | ||
margin-left: -0.75rem; | ||
} | ||
|
||
.bd-examples > [class^="col-"] { | ||
padding-right: 0.75rem; | ||
} | ||
``` | ||
|
||
| Pilot | Airport | Hours | | ||
| -------- | :-----: | ----: | | ||
| John Doe | SKG | 1338 | | ||
| Jane Roe | JFK | 314 | | ||
|
||
--- | ||
|
||
- List | ||
- with a [link] (/to/somewhere) | ||
- and [another one] | ||
|
||
[another one]: http://example.com "Example title" | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. | ||
Curabitur consectetur maximus risus, sed maximus tellus tincidunt et. | ||
</MarkdownComponent> | ||
</div> |