- Nov 06, 2018
-
-
Alec Theriault authored
-
Alec Theriault authored
Inline markup is supported in image links but, as per the [commonmark recommendation][0], it is stripped back to a plain text representation. [0]: https://spec.commonmark.org/0.28/#example-547
-
Alec Theriault authored
The parser for pictures hasn't been properly adjusted yet.
-
- Nov 05, 2018
-
-
Alec Theriault authored
Perf only change: * use 'getParserState'/'setParserState' to make 'Text'-optimized parser combinators * minimize uses of 'Data.Text.{pack,unpack,cons,snoc}'
-
- Apr 25, 2018
-
-
* Remove attoparsec with parsec and start fixing failed parses * Make tests pass * Fix encoding issues The Haddock parser no longer needs to worry about bytestrings. All the internal parsing work in haddock-library happens over 'Text'. * Remove attoparsec vendor * Fix stuff broken in 'attoparsec' -> 'parsec' * hyperlinks * codeblocks * examples Pretty much all issues are due to attoparsec's backtracking failure behaviour vs. parsec's non-backtracking failure behaviour. * Fix small TODOs * Missing quote + Haddocks * Better handle spaces before/after paragraphs * Address review comments
-
- Mar 27, 2018
-
-
* Metadoc stores a package name This means that '@since' annotations can be package aware. * Get the package name the right way This should extract the package name for `@since` annotations the right way. I had to move `modulePackageInfo` around to do this and, in the process, I took the liberty to update it. Since it appears that finding the package name is something that can fail, I added a warning for this case. * Silence warnings * Hide package for local 'since' annotations As discussed, this is still the usual case (and we should avoid being noisy for it). Although this commit is large, it is basically only about threading a 'Maybe Package' from 'Haddock.render' all the way to 'Haddock.Backends.Xhtml.DocMarkup.renderMeta'. * Bump binary interface version * Add a '--since-qual' option This controls when to qualify since annotations with the package they come from. The default is always, but I've left an 'external' variant where only those annotations coming from outside of the current package are qualified. * Make ParserSpec work * Make Fixtures work * Use package name even if package version is not available The @since stuff needs only the package name passed in, so it makes sense to not be forced to pass in a version too.
-
- Mar 14, 2018
-
-
- Mar 10, 2018
-
-
- Mar 02, 2018
-
-
Alec Theriault authored
Unicode operators are a pretty big thing in Haskell, so supporting linking them seems like it outweighs the cost of the extra machinery to force Attoparsec to look for unicode. Fixes #458.
-
- Feb 01, 2018
-
-
* Add table examples * Add table types and adopt simple parser Simple parser is done by Giovanni Cappellotto (@potomak) in https://github.com/haskell/haddock/pull/577 It seems to support single fine full tables, so far from full RST-grid tables, but it's good start. Table type support row- and colspans, but obviously parser is lacking. Still TODO: - Latex backend. Should we use multirow package https://ctan.org/pkg/multirow?lang=en? - Hoogle backend: ? * Implement grid-tables * Refactor table parser * Add two ill-examples * Update CHANGES.md * Basic documentation for tables * Fix documentation example
-
-
-
Alex Biehl authored
This fixes #546.
-
- Jul 31, 2017
-
-
Alex Biehl authored
-
- May 13, 2017
-
-
Alex Biehl authored
These allow attoparsec to do some clever lookup optimization
-
- Dec 21, 2015
-
-
idontgetoutmuch authored
Change notation and add support for inline math. Allow newlines in display math. Add a command line option for the mathjax url (you might want to use a locally installed version). Rebase tests because of extra url and version change. Respond to (some of the) comments. Fix warnings in InterfaceFile.hs
-
idontgetoutmuch authored
-
- May 27, 2015
-
-
Łukasz Hanuszczak authored
-
Łukasz Hanuszczak authored
-
- Jan 22, 2015
-
-
On Windows this was causing newline to be rendered twice in code blocks. Closes #359, fixes #356.
-
- Dec 12, 2014
-
-
GHC fails type-inference with `OverloadedStrings` + `Data.Foldable.elem` otherwise. Conflicts: haddock-library/src/Documentation/Haddock/Parser.hs
-
- Dec 10, 2014
-
-
Mateusz Kowalczyk authored
-
Mateusz Kowalczyk authored
Currently we only use it only for ‘since’ annotations but with these patches it should be fairly simple to add new attributes if we wish to. Closes #26. It seems to work fine but due to 7.10 rush I don't have the chance to do more exhaustive testing right now. The way the meta is output (emphasis at the end of the whole comment) is fairly arbitrary and subject to bikeshedding. Note that this makes test for Bug310 fail due to interface version bump: it can't find the docs for base with this interface version so it fails. There is not much we can do to help this because it tests for ’built-in’ identifier, not something we can provide ourselves.
-
- Nov 16, 2014
-
-
Simon Hengel authored
-
Simon Hengel authored
-
- Nov 08, 2014
-
-
Simon Hengel authored
-
Simon Hengel authored
-
- Nov 04, 2014
-
-
Mateusz Kowalczyk authored
-
- Nov 03, 2014
-
-
Simon Hengel authored
This is to disambiguate them from markdown links and will be require with a future release.
-
Simon Hengel authored
-
Simon Hengel authored
-
Simon Hengel authored
-
Simon Hengel authored
-
Simon Hengel authored
-
Simon Hengel authored
-
- Sep 18, 2014
-
-
Herbert Valerio Riedel authored
GHC fails type-inference with `OverloadedStrings` + `Data.Foldable.elem` otherwise.
-
- Aug 15, 2014
-
-
Mateusz Kowalczyk authored
I get rid of the Monoid instance because we weren't satisfying the laws. Convenience of having <> didn't outweigh the shock-factor of having it behave badly.
-
- Jul 28, 2014
-
-
Mateusz Kowalczyk authored
-
- Jun 25, 2014
-
-
Mateusz Kowalczyk authored
The benefit of this is that the ‘top-level’ element of such lists is properly wrapped in <p> tags so any CSS working with these will be applied properly. It also just makes more sense. Pointed out at jgm/pandoc#1346.
-
Mateusz Kowalczyk authored
I can not remember why they were wrapped in paragraphs to begin with and it seems unnecessary now that I test it. Closes #307.
-