This pull request adds the block's Markdown content value to the block style configuration. This allows the block style to access the actual Markdown content rendered in the block style configuration label property.
You can use the renderMarkdown() and renderPlainText() methods on the content property to render the Markdown-formatted or plain text, respectively.
As a result of this change, all the block-style methods with a label closure are now deprecated. When creating new themes or overriding block styles, you should use the version of the method that takes a closure receiving a BlockConfiguration value.
This pull request adds the block's Markdown content value to the block style configuration. This allows the block style to access the actual Markdown content rendered in the block style configuration label property.
You can use the
renderMarkdown()
andrenderPlainText()
methods on thecontent
property to render the Markdown-formatted or plain text, respectively.If you are styling a container block, like a list or a blockquote, you can access the child content using the
childContent
property.As a result of this change, all the block-style methods with a label closure are now deprecated. When creating new themes or overriding block styles, you should use the version of the method that takes a closure receiving a
BlockConfiguration
value.