I’m trying to create some documentation with hugo for a software, it is very nice and I love it. I just wonder what would be the best way to add some preprocessing on the input to generate different HTML code based on a custom syntax.
For example, if I have the following lines:
note: this is a notice
warning: this is a warning
I would like to generate some HTML code in blocks like this:
<div class="alert alert-info" role="alert">this is a notice</div>
<div class="alert alert-warning" role="alert">this is a warning</div>
Is there such a preprocessing in a hugo? Should I do my preprocess before hugo? What are you thoughts on this?