vuepress-theme-plume/docs/snippet/whitespace.snippet.md
pengzhanbo 4d2361a704
feat(theme)!: add collections support (#704)
* feat(theme)!: add collection support
2025-10-07 23:13:09 +08:00

68 lines
823 B
Markdown
Raw Permalink 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'
}
```