Dimitris Apostolou
2f521081ad
Fix typos ( #7934 )
2022-02-22 09:05:39 -08:00
Albert Krewinkel
b7a44f9d19
Copyright notices: update for 2022
2022-01-02 11:59:22 -08:00
Michael Hoffmann
e56e2b0e0b
Recognize data-external when reading HTML img tags ( #7429 )
...
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-07-06 16:06:29 -07:00
Albert Krewinkel
1843a8793a
HTML writer: keep attributes from code nested below pre tag.
...
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-17 18:08:02 +02:00
Albert Krewinkel
0794862aac
HTML writer: parse <header>
as a Div
...
HTML5 `<header>` elements are treated like `<div>` elements.
2021-05-15 16:46:02 +02:00
Albert Krewinkel
d202f7eb77
Avoid unnecessary use of NoImplicitPrelude pragma ( #7089 )
2021-02-07 10:02:35 -08:00
Albert Krewinkel
4f34345867
Update copyright notices for 2021 ( #7012 )
2021-01-08 09:38:20 -08:00
Albert Krewinkel
0eedbd0a3d
HTML reader tests: disable round-trip testing for tables
...
Information for cell alignment in a column is not preserved during
round-trips.
2020-11-24 15:46:11 +01:00
John MacFarlane
aff2500d46
More fixes for round-trip tests of HTML reader.
...
We exclude tables that have default widths but non-simple
content, as these can't really round-trip.
2020-04-19 17:21:19 -07:00
John MacFarlane
573214a06a
Fixed round-trip HTML tests.
...
Exclude tables with cells with line breaks because they don't
currently round-trip. (Table goes from being simple to having
explicit widths.)
2020-04-18 20:57:28 -07:00
Albert Krewinkel
11b5f1e40b
Update copyright year ( #6186 )
...
* Update copyright year
* Copyright: add notes for Lua and Jira modules
2020-03-13 09:52:47 -07:00
John MacFarlane
4c3db9273f
Apply linter suggestions. Add fix_spacing to lint target in Makefile.
2020-02-07 09:08:22 -08:00
John MacFarlane
80a0e56a5d
HTML reader tests: modify round-trip tests...
...
to avoid a special failure case involving makeSections.
2019-12-21 12:15:35 -08:00
Amogh Rathore
bd2bd9b19d
HTML Reader/Writer - Add support for <var> and <samp> ( #5861 )
...
Closes #5799
2019-11-04 08:42:30 -08:00
Amogh Rathore
d50f46d26d
Add Reader support for HTML <samp> element ( #5843 )
...
The `<samp>` element is parsed as a Span with class `sample`.
Closes #5792 .
2019-10-23 08:44:24 -07:00
John MacFarlane
052684712b
HTML reader: read data-foo
attribute into foo
.
...
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-03-25 08:43:59 -07:00
Albert Krewinkel
37a82b0b11
Add missing copyright notices and remove license boilerplate ( #5112 )
...
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 .
2019-02-04 13:52:31 -08:00
John MacFarlane
885cbfd420
Only override --quickcheck-tests=N if N is not default value (100).
...
Some of the round-trip tests are set to do a maximum of 25
trials when the default value is given.
Closes #4956 .
2018-10-15 22:15:43 -07:00
John MacFarlane
13f8f3c1a8
HTML, Muse reader tests: reduce time taken by round-trip test.
2018-09-27 09:47:09 -07:00
Alexander Krotov
3f8891b26f
Enable tables in HTML round trip test
2018-09-11 19:24:00 +03:00
Alexander Krotov
ca420983aa
HTML reader tests: accept Blocks in round trip test
2018-09-11 19:23:46 +03:00
Alexander Krotov
1b9dd3e06b
Remove RawBlock from HTML round trip tests
2018-09-10 14:28:28 +03:00
Alexander Krotov
4467fe6d38
HTML reader: test round trip property
2018-09-10 12:15:27 +03:00
John MacFarlane
7e389cb3db
Use NoImplicitPrelude and explicitly import Prelude.
...
This seems to be necessary if we are to use our custom Prelude
with ghci.
Closes #4464 .
2018-03-18 10:46:28 -07:00
John MacFarlane
ff16db1aa3
Automatic reformating by stylish-haskell.
2017-10-27 20:28:29 -07:00
bucklereed
db55f7c1b2
HTML reader: parse <main> like <div role=main>. ( #3791 )
...
* HTML reader: parse <main> like <div role=main>.
* <main> closes <p> and behaves like a block element generally
2017-08-09 09:10:12 -07:00
bucklereed
460b6c470b
HTML reader: Use the lang value of <html> to set the lang meta value. ( #3765 )
...
* HTML reader: Use the lang value of <html> to set the lang meta value.
* Fix for pre-AMP environments.
2017-06-27 10:19:37 +02:00
John MacFarlane
94b3dacb4e
Changed all readers to take Text instead of String.
...
Readers: Renamed StringReader -> TextReader.
Updated tests.
API change.
2017-06-10 18:26:44 +02:00
John MacFarlane
6ecc5b96a9
Use tasty for tests rather than test-framework.
2017-03-14 17:07:23 +01:00
John MacFarlane
e256c8ce17
Stylish-haskell automatic formatting changes.
2017-03-04 13:03:41 +01:00
John MacFarlane
18ab864269
Moved tests/ -> test/.
2017-02-04 12:56:30 +01:00