Recently, I successfully eliminated all inline HTML from my Hugo blog that was previously utilized to style the images inserted into my posts. By using CSS selectors, I have achieved this so that Markdown syntax like
![](Landscape.jpg#align-left)
yields the desired outcome. Now, my concern is how can I achieve a similar result for text spans? For instance, in one of my blog posts, I utilize span blocks to apply CSS for setting text color. These styling effects are no longer present since I removed the following snippet from my config.toml file. This configuration block was necessary originally to render inline HTML.
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true
Is there an alternative approach akin to what I've implemented for images that can be applied to text?
I appreciate your assistance in advance!