Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed bold face markup in Haddock documentation

Is there a way to get bold faced text when documenting Haskell source code with haddock markup? There is / / for emphasis, but nothing obvious for strong. I'm hoping for an elegant hack but I'll settle for a kludgy workaround...

AfC

like image 804
Andrew Cowie Avatar asked Sep 18 '25 00:09

Andrew Cowie


2 Answers

This feature was pushed to HEAD yesterday.

The markup is __This is some bold text__. You don't need to escape single underscores.

like image 146
Mateusz Kowalczyk Avatar answered Sep 19 '25 13:09

Mateusz Kowalczyk


Add '@' to your text and it will be bold:

Bold only one word, bold to the first delimiter like space and etc...

@text1 text2

here bold only text1 word.

Or wrap in bold some text:

@bold text examples in haddock@

like image 45
0xAX Avatar answered Sep 19 '25 14:09

0xAX