aboutsummaryrefslogtreecommitdiff
path: root/test/Tests/Readers/HTML.hs
AgeCommit message (Collapse)Author
2025-08-26HTML reader: don't drop the initial newline in a pre element.John MacFarlane
Closes #11064.
2024-09-03HTML reader: only parse main element's contents (if present).John MacFarlane
If main has an id or class, we include a div with that id or class; otherwise just the contents. Closes #10140.
2024-04-25Update copyright dates to 2024.John MacFarlane
2023-01-10Update copyright years, it's 2023!Albert Krewinkel
2022-09-28HTML Reader: Tests for 'tt' and 'code' elements (#8330).Justin Wood
tt is a deprecated element in HTML, but is still used in the wild in some places, support reading it as just another 'code' element. Commit 4abb9d0ad8dbb88fbc443a78d5a1b116cb7a5816 was originally part of this PR as well.
2022-02-22Fix typos (#7934)Dimitris Apostolou
2022-01-02Copyright notices: update for 2022Albert Krewinkel
2021-07-06Recognize data-external when reading HTML img tags (#7429)Michael Hoffmann
Preserve all attributes in img tags. If attributes have a `data-` prefix, it will be stripped. In particular, this preserves a `data-external` attribute as an `external` attribute in the pandoc AST.
2021-05-17HTML writer: keep attributes from code nested below pre tag.Albert Krewinkel
If a code block is defined with `<pre><code class="language-x">…</code></pre>`, where the `<pre>` element has no attributes, then the attributes from the `<code>` element are used instead. Any leading `language-` prefix is dropped in the code's *class* attribute are dropped to improve syntax highlighting. Closes: #7221
2021-05-15HTML writer: parse `<header>` as a DivAlbert Krewinkel
HTML5 `<header>` elements are treated like `<div>` elements.
2021-02-07Avoid unnecessary use of NoImplicitPrelude pragma (#7089)Albert Krewinkel
2021-01-08Update copyright notices for 2021 (#7012)Albert Krewinkel
2020-11-24HTML reader tests: disable round-trip testing for tablesAlbert Krewinkel
Information for cell alignment in a column is not preserved during round-trips.
2020-04-19More fixes for round-trip tests of HTML reader.John MacFarlane
We exclude tables that have default widths but non-simple content, as these can't really round-trip.
2020-04-18Fixed round-trip HTML tests.John MacFarlane
Exclude tables with cells with line breaks because they don't currently round-trip. (Table goes from being simple to having explicit widths.)
2020-03-13Update copyright year (#6186)Albert Krewinkel
* Update copyright year * Copyright: add notes for Lua and Jira modules
2020-02-07Apply linter suggestions. Add fix_spacing to lint target in Makefile.John MacFarlane
2019-12-21HTML reader tests: modify round-trip tests...John MacFarlane
to avoid a special failure case involving makeSections.
2019-11-04HTML Reader/Writer - Add support for <var> and <samp> (#5861)Amogh Rathore
Closes #5799
2019-10-23Add Reader support for HTML <samp> element (#5843)Amogh Rathore
The `<samp>` element is parsed as a Span with class `sample`. Closes #5792.
2019-03-25HTML reader: read `data-foo` attribute into `foo`.John MacFarlane
The HTML writer adds the `data-` prefix for HTML5 for nonstandard attributes. But the attributes are represented in the AST without the `data-` prefix, so we should strip this when reading HTML. Closes #5392.
2019-02-04Add missing copyright notices and remove license boilerplate (#5112)Albert Krewinkel
Quite a few modules were missing copyright notices. This commit adds copyright notices everywhere via haddock module headers. The old license boilerplate comment is redundant with this and has been removed. Update copyright years to 2019. Closes #4592.
2018-10-15Only override --quickcheck-tests=N if N is not default value (100).John MacFarlane
Some of the round-trip tests are set to do a maximum of 25 trials when the default value is given. Closes #4956.
2018-09-27HTML, Muse reader tests: reduce time taken by round-trip test.John MacFarlane
2018-09-11Enable tables in HTML round trip testAlexander Krotov
2018-09-11HTML reader tests: accept Blocks in round trip testAlexander Krotov
2018-09-10Remove RawBlock from HTML round trip testsAlexander Krotov
2018-09-10HTML reader: test round trip propertyAlexander Krotov
2018-03-18Use NoImplicitPrelude and explicitly import Prelude.John MacFarlane
This seems to be necessary if we are to use our custom Prelude with ghci. Closes #4464.
2017-10-27Automatic reformating by stylish-haskell.John MacFarlane
2017-08-09HTML reader: parse <main> like <div role=main>. (#3791)bucklereed
* HTML reader: parse <main> like <div role=main>. * <main> closes <p> and behaves like a block element generally
2017-06-27HTML reader: Use the lang value of <html> to set the lang meta value. (#3765)bucklereed
* HTML reader: Use the lang value of <html> to set the lang meta value. * Fix for pre-AMP environments.
2017-06-10Changed all readers to take Text instead of String.John MacFarlane
Readers: Renamed StringReader -> TextReader. Updated tests. API change.
2017-03-14Use tasty for tests rather than test-framework.John MacFarlane
2017-03-04Stylish-haskell automatic formatting changes.John MacFarlane
2017-02-04Moved tests/ -> test/.John MacFarlane