title: Markup Language To Pdf or Html
body: <p>Is there a markup language that can be used in conjunction with a well supported .net open source project to generate PDF or HTML documents with very fine control on the output in terms of style and anchoring for both ?</p>
  
  <p>Documents will part be static and part auto generated from the xml comments of some class libraries.</p>
  
  <p>To Clarify the question, I Know html is a markup language, The reason I don't want to use it to directly store the content is because all of the HTML to PDF tools and libraries I have looked at contain patchy support for creating tables of contents, indexes and turning hyperlinks in to PDF document anchors.</p>