-
-
Notifications
You must be signed in to change notification settings - Fork 605
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow
]
in filename code block (#2169)
Co-authored-by: nobkd <44443899+nobkd@users.noreply.github.com>
- Loading branch information
1 parent
a6c549e
commit 7a6ab10
Showing
13 changed files
with
114 additions
and
20 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
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
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
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,36 @@ | ||
<script lang="ts" setup> | ||
defineProps<{ | ||
code: string, | ||
language?: string, | ||
filename?: string, | ||
highlights: number[], | ||
meta?: string | ||
}>() | ||
</script> | ||
|
||
<template> | ||
<div v-if="language"> | ||
language <br> | ||
{{ language }} | ||
</div> | ||
<div v-if="filename"> | ||
filename <br> | ||
{{ filename }} | ||
</div> | ||
<div v-if="highlights"> | ||
highlights <br> | ||
{{ highlights }} | ||
</div> | ||
<div v-if="meta"> | ||
meta <br> | ||
{{ meta }} | ||
</div> | ||
<slot /> | ||
</template> | ||
|
||
<style> | ||
pre code .line { | ||
display: block; | ||
min-height: 1rem; | ||
} | ||
</style> |
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,49 @@ | ||
```vue [[...page\\].vue]{1} title="Custom Prose" | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```vue [[...page\\].vue] title="Custom Prose" | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```vue [[...page\\].vue]{1} | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```vue title="Custom Prose" | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```vue [file.js] {2-4}title="Custom Prose" | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```ts[[...page\\].vue] {4-6,7} other code block info | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` | ||
```[] {4-6,7} other code block info | ||
<template> | ||
<div> | ||
<h1>Custom Prose</h1> | ||
</div> | ||
</template> | ||
``` |
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