lofidev
(lofi dev)
1
Hello, I am developing a plugin that is similar to mermaid or the graphql parse when a code block is created.
```CustomParse
```
What I am looking for is to add it natively and that I can change the block in the preview or if not create something custom like this
<block>
</block>
I’m writing it here because I’ve been testing for a long time but I can’t find the right way to capture the text and move only the block I want.
Do you know if this functionality already exists to be used or must be created from scratch?
craftzdog
(Takuya Matsuyama)
2
Hi lofidev,
Thanks for the question.
You can define a custom codeblock language just like Marmaid plugin does:
API reference:
Hope that helps.
1 Like
lofidev
(lofi dev)
3
Really thankful. I was able to complete my functionality. 
1 Like
craftzdog
(Takuya Matsuyama)
4
Yeah, and cool to see your plugin!
Thanks 
1 Like