Markdown
Learn about using custom blocks in Markdown when using Git Sync
Last updated
Was this helpful?
Learn about using custom blocks in Markdown when using Git Sync
Last updated
Was this helpful?
Was this helpful?
In some cases (ex: with our official block), 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:
In this scenario, a block with the properties { "content": "something" } will be formatted in your Markdown as:
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" }
blocks:
- id: block-name
title: My custom block
markdown:
codeblock: blocksyntax
body: content```blocksyntax
something
``````blocksyntax propA="A"
something
```