New: AI Insights are here.
See what your users are asking.
Ctrlk
Pricing Log in Sign up
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Markdown

Learn about using custom blocks in Markdown when using Git Sync

In some cases, you might want to format custom blocks as code-blocks in Markdown.

In your gitbook-manifest.yaml, define the markdown property for the a block:

blocks:
-id:block-name
title:My custom block
markdown:
codeblock:blocksyntax
body:content

In this scenario, a block with the properties { "content": "something" } will be formatted in your Markdown as:

```blocksyntax
something
```

In the scenario where the block also has other properties, those will be set on the code-block. For example with a block having the properties { "content": "something", "propA": "A" }

```blocksyntax propA="A"
something
```

The native Mermaid block uses this pattern. If your content still uses older Mermaid code-blocks from the previous integration, GitBook converts them automatically when you edit the page.

Last updated

Was this helpful?

AltStyle によって変換されたページ (->オリジナル) /