Skip to content

Commit

Permalink
fix the content of pre tag overflow the wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhefeng authored Sep 15, 2024
1 parent 6ba692a commit 4778bc7
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions template/api-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,22 @@ const { site, theme, page, frontmatter } = useData()
## Results

### Theme Data
<pre>{{ theme }}</pre>
<div class="language-json">
<pre>{{ theme }}</pre>
</div>


### Page Data
<pre>{{ page }}</pre>
<div class="language-json">
<pre>{{ page }}</pre>
</div>

### Page Frontmatter
<pre>{{ frontmatter }}</pre>
<div class="language-json">
<pre>{{ frontmatter }}</pre>
</div>

## More

Check out the documentation for the [full list of runtime APIs](https://vitepress.dev/reference/runtime-api#usedata).

<style scoped>
pre {
width: 100%;
overflow: auto;
background-color: var(--vp-code-block-bg);
padding: 1em;
}
</style>

0 comments on commit 4778bc7

Please sign in to comment.