Search Docs
input
1--- 2title : "Hello World" 3--- 4# {frontmatter.title}
output
1<h1>Hello World</h1>
1:::details 此处有一细节 2This is a `block` of `Custom Title` 3:::
This is a block of Custom Title
block
Custom Title
参考
```js title="Hello World" console.log('Hello World') ```
1console.log('Hello World')
If you want to display line numbers, you can enable the showLineNumbers option in the config file:
showLineNumbers
1export default { 2 // ... 3 markdown: { 4 showLineNumbers: true, 5 }, 6};
1```js title="hello.js" {1,3-5} 2console.log(1) 3console.log(2) 4console.log(3) 5console.log(4) 6console.log(5) 7console.log(6) 8```
1console.log(1) 2console.log(2) 3console.log(3) 4console.log(4) 5console.log(5) 6console.log(6)