如何编写像new line这样的特殊字符,并输出haddock的格式 [英] How to write special characters like new line, and format output of haddock
问题描述
我想将我的haddock文档格式化为我使用javadoc的格式,例如插入html或任何其他标记,这些标记可以让我在不排除任何JavaScript或CSS的情况下获得更清晰的输出...特别是,我想知道如何在文档中插入一个换行符。
I would like to format my haddock documentation as I do with javadoc, something like inserting html or any other markup that let me get a cleaner output without uncluding any javascript or CSS... Specially, I would like to know how to insert a line break in the documentation.
谢谢!
thanks!
推荐答案
Haddock设计用于处理多种输出格式,包括LaTeX,因此它使用自己的标记格式,而不是HTML之类的东西。
Haddock is designed to work with multiple output formats, including LaTeX, so it uses its own markup format instead of something like HTML.
我不认为您只能插入换行符,但您可以通过留空来开始新的段落行,例如
I don't think you can insert just a line break, but you can start a new paragraph by leaving a blank line, e.g.
-- | First paragraph.
--
-- Second paragraph.
这篇关于如何编写像new line这样的特殊字符,并输出haddock的格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!