Currently, the HTML-BBCode parser in World Anvil lacks support for the <mark> tag, which limits users' ability to emphasize and draw attention to important information within their articles. This can hinder readability and the effective conveyance of significance. While users can currently create custom classes as a workaround, it is not as intuitive or user-friendly as having a dedicated highlighting feature. I do not know the specifics of the WA architecture, but implementing this feature might be less resource-demanding than the current practice of users creating their own custom classes:
I propose a simple and lightweight solution: by adding support for the <mark> tag in World Anvil's HTML-BBCode parser, users will be able to highlight specific text sections without significant additional data overhead. From the little bit I understand of the parser, the implementation can be achieved by incorporating a replace rule, such as:
$parsed_string = preg_replace('/\[mark\](.*?)\[\/mark\]/', '<mark>\1</mark>', $parsed_string
which ensures seamless integration within the existing parser. Moreover, this approach allows client-side rendering, minimizing reliance on network bandwidth and leveraging the user's device to handle the rendering process.
There's not much use for text highlighting beyond well... text highlighting, but it can be used for multiple purposes within a worldbuilding context:
Being out-of-practice on my CSS styling skills, I'm always in favor of additional BBCode styling options! Also, anything that makes it easier for brand new users to make their own articles look great increases the welcoming feel of WA overall.
Asides from the other reasons, it could also add to immersion: A document with things highlighted by 'whatever reader had the document before you the user'.
Yes please, I had to add my own custom css to style a section called mark in order to make use of highlighting in my world :)
lol the <mark> tag worked in my notification box XD I'm not sure how much of a hassle it would be to implement, but I'm all for more accessibility and styling options. Thanks for suggesting this. God bless