Anonymous tag #358
-
Could I define an empty tag and it wrap the content For example
And it parse to <div class="myclass">ABC</div> |
Beta Was this translation helpful? Give feedback.
Answered by
rpaul-stripe
Apr 19, 2023
Replies: 1 comment 1 reply
-
No, you can't use a class annotation as an opening and closing element. You can, however, put a class annotation directly inside of a block to apply it to the block itself. For example:
Is effectively:
If you want a div wrapper you would have to define a custom named tag:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eerison
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, you can't use a class annotation as an opening and closing element. You can, however, put a class annotation directly inside of a block to apply it to the block itself.
For example:
Is effectively:
If you want a div wrapper you would have to define a custom named tag: