vuepress-theme-plume/docs/notes/theme/snippet/whitespace.snippet.md
Mister-Hope b8b32201ef
feat!: remove plugin-shikiji, migrate to @vuepress/plugin-shiki, close #489 (#508)
* feat: remove shiki plugin

* chore: tweak

* chore: tweak

---------

Co-authored-by: pengzhanbo <volodymyr@foxmail.com>
2025-03-05 12:36:53 +08:00

68 lines
823 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

渲染每行代码行前的空格:
**输入:**
````
```xml :whitespace
<catalog>
<book>
<title>Everyday Italian</title>
</book>
</catalog>
```
````
**输出:**
```xml :whitespace :no-line-numbers
<catalog>
<book>
<title>Everyday Italian</title>
</book>
</catalog>
```
渲染每行代码行前的 Tab
**输入:**
````
```xml :whitespace
<catalog>
<book>
<title>Everyday Italian</title>
</book>
</catalog>
```
````
**输出:**
```xml :whitespace :no-line-numbers
<catalog>
<book>
<title>Everyday Italian</title>
</book>
</catalog>
```
渲染所有的空格:
**输入:**
````
```js :whitespace=all
function foo( ) {
return 'Hello World'
}
```
````
**输出:**
```js :whitespace=all :no-line-numbers
function foo( ) {
return 'Hello World'
}
```