aboutsummaryrefslogtreecommitdiff
path: root/tests/writer.html
AgeCommit message (Collapse)AuthorFilesLines
2015-07-07Fixed email javascript obfuscation with mailto: URLs.John MacFarlane1-1/+1
This fixes a potential security issue. Because single quotes weren't being escaped in the link portion, a specially crafted email address could allow javascript code injection. [Jim'+alert('hi')+'OBrien](mailto:me@example.com) Closes #2280.
2015-02-04Append newline to the LineBreak of various writersTim Lin1-1/+2
This change improves output formatting of content with a large amount of force line breaks, such as line-blocks. The following writers are affected: * Dokuwiki * HTML * EPUB (via HTML) * LaTeX * MediaWiki * OpenDocument * Texinfo This commit resolves #1924
2015-02-01HTML writer: Add "inline" or "display" class to math spans.John MacFarlane1-7/+7
This allows inline and display math to be styled differently. Closes #1914.
2014-12-15HTML writer: put newline btw img and caption paragraph.John MacFarlane1-1/+2
2014-08-31Markdown reader: better handling of paragraph in div.John MacFarlane1-2/+2
Previously text that ended a div would be parsed as Plain unless there was a blank line before the closing div tag. Test case: <div class="first"> This is a paragraph. This is another paragraph. </div> Closes #1591.
2014-08-12HTML writer: use 'uri' or 'email' class for autolinks.John MacFarlane1-5/+5
This allows them to be styled specially. Closes #1501.
2014-07-07Revamped raw HTML block parsing in markdown.John MacFarlane1-19/+4
- We no longer include trailing spaces and newlines in the raw blocks. - We look for closing tags for elements (but without backtracking). - Each block-level tag is its own RawBlock; we no longer try to consolidate them (though `--normalize` will do so). Closes #1330.
2013-11-12HTML/EPUB footnotes: Put `<sup>` tag inside `<a>` tags.John MacFarlane1-3/+3
This allows better control of formatting, since the `<a>` tags have a distinguishing class. Closes #1049.
2013-11-01TexMath: Export readTeXMath', which attends to display/inline.John MacFarlane1-1/+1
Deprecate readTeXMath, and use readTeXMath' in all the writers. Require texmath >= 0.6.5.
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane1-9/+3
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-01-21Use proportional font for email autolinks with obfuscation.John MacFarlane1-1/+1
Closes #714.
2013-01-06Don't put the text of an autolink in Code font.John MacFarlane1-3/+3
2013-01-04Added css to preserve spaces in <code> tags.John MacFarlane1-0/+1
Thanks to Dirk Laurie.
2012-09-12HTML writer: Improve line breaks with `<dd>` tags.John MacFarlane1-5/+10
We now put a newline between `</dd>` and `<dd>` when there are multiple definitions.
2012-01-28Put date in YYYY-MM-DD format if possible for HTML, docx metadata.John MacFarlane1-1/+1
Added normalizeDate to Text.Pandoc.Shared.
2011-12-29Updated tests for changes to HTML note back references.John MacFarlane1-5/+5
2011-12-27Updated tests.John MacFarlane1-22/+11
2011-12-18HTML writer: Use `<del>` for strikeout.John MacFarlane1-1/+1
2011-12-01Made author/date more consistent in HTML templates.John MacFarlane1-3/+3
Authors are now h2, date h3. (Instead of h3/h4, as in the past.)
2011-11-12Updated writer tests for new version of texmath.John MacFarlane1-2/+2
2011-11-08Update templates to use Content-Style-Type meta tag.John MacFarlane1-0/+1
Closes #337.
2011-07-24HTML writer: Removed English title on footnote back links.John MacFarlane1-5/+5
This is incongruous in non-English documents.
2011-07-23HTML writer: Display author and date after title.John MacFarlane1-0/+5
2011-02-04Improved HTML table output (line breaks).John MacFarlane1-7/+21
2011-02-04Updated tests.John MacFarlane1-339/+54
2011-02-04HTML writer: Spacing adjustments for Plain and RawHtml blocks.John MacFarlane1-172/+74
2011-02-04Updated tests for new HTML format.John MacFarlane1-1094/+874
Verified against old tests using tidy and diff.
2011-01-26Add support for attributes in inline Code.John MacFarlane1-3/+3
Additional related changes: * URLs in Code in autolinks now use class "url". * Require highlighting-kate 0.2.8.2, which omits the final <br/> tag, essential for inline code.
2011-01-26Bumped version to 1.8; depend on pandoc-types 1.8.John MacFarlane1-2/+0
The old TeX, HtmlInline and RawHtml elements have been removed and replaced by generic RawInline and RawBlock elements. All modules updated to use the new raw elements.
2011-01-11Improvements to --html5 support:John MacFarlane1-18/+18
+ <nav> for TOC, <figure> for figures, type attribute in <ol>. + Don't add math javascript in html5. + Use style attributes instead of deprecated width, align. + html template: move <title> after <meta>. Note: charset needs to be declared before title. + slidy and s5 templates: move <title> after <meta>. + html template: Added link to html5 shim for IE. + Make --html5 have an effect only for 'html' writer (not s5, slidy, epub).
2010-07-20Made spacing at end of output more consistent.John MacFarlane1-1/+0
Previously some of the writers added spurious whitespace. This has been removed, resolving Issue #232. NOTE: If your application combines pandoc's output with other text, for example in a template, you may need to add spacing. For example, a pandoc-generated markdown file will not have a blank line after the final block element. If you are inserting it into another markdown file, you will need to make sure there is a blank line between it and the next block element.
2010-07-15Added --section-divs option.John MacFarlane1-1023/+961
+ Header identifiers now get attached to the headers, unless --section-divs is specified, in which case they are added to enclosing divs. By default, the divs are not added. + Resolves Issue #230, #239.
2010-07-15Added --webtex option for HTML math.John MacFarlane1-2/+4
+ Added --webtex command-line option, with optional parameter. (Defaults to using google charts API.) + Added WebTeX HTMLMathMethod. + Removed MimeTeX HTMLMathMethod. (WebTeX is generic and subsumes it.) + Modified --mimetex option to use WebTeX. + Thanks to lpeterse for the idea and some of the code.
2010-04-25Use texmath's parser in TexMath module.John MacFarlane1-29/+5
* This replaces a lot of custom parser code, and expands the tex -> unicode conversion. * The behavior has also changed: if the whole formula can't be converted, the whole formula is left in raw TeX. Previously, pandoc converted parts of the formula to unicode and left other parts in raw TeX. * Added (but not yet exported) readTeXMath', which returns a Maybe. * Updated tests
2010-03-18HTML writer: Use a p rather than a div for image caption.fiddlosopher1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1900 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-03-16HTML writer: implemented image-with-caption feature.fiddlosopher1-2/+4
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1891 788f1e2b-df1e-0410-8736-df70ead52e1b
2010-01-01Finished converting HTML writer to use unicode instead of entities.fiddlosopher1-33/+33
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1767 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Use UTF8 instead of entities in HTML.fiddlosopher1-8/+8
Resolves Issue #163. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1744 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31HTML footnotes: put anchor inside sup, instead of other way.fiddlosopher1-20/+20
Resolves Issue #191. Thanks to infinity0x for suggesting. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1743 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Improved RST writer.fiddlosopher1-1/+2
Updated test suite. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1725 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31Tweaked templates and tests.fiddlosopher1-2/+2
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1711 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-31HTML writer changes for templates.fiddlosopher1-1115/+1112
Note: now a single meta tag is used for multiple authors. Previously one tag per author was used. Fixed title in HTML template to avoid excess blank space. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1703 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-12-07Improved syntax for markdown definition lists.fiddlosopher1-0/+66
Definition lists are now more compatible with PHP Markdown Extra. Resolves Issue #24. + You can have multiple definitions for a term (but still not multiple terms). + Multi-block definitions no longer need a column before each block (indeed, this will now cause multiple definitions). + The marker no longer needs to be flush with the left margin, but can be indented at or two spaces. Also, ~ as well as : can be used as the marker (this suggestion due to David Wheeler.) + There can now be a blank line between the term and the definitions. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1656 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-04-25HTML writer: wrap sections in divs. Resolves Issue #70.fiddlosopher1-916/+978
+ hierarchicalize has been rationalized; it builds a hierarchical representation of the document from the headers, and simultaneously gives each section a unique identifier based on the heading title. + Identifiers are now attached to the divs rather than to the headers themselves. + Table of content backlinks go to the beginning of the table, rather than to the section reference that was clicked. This seems better. + Code for constructing identifiers has been moved to Text.Pandoc.Shared from the HTML writer, since it is now consumed only by hierarchicalize. + In --strict mode, pandoc just prints bare headings, as before (unless --toc has been specified). + In s5 output, it does not wrap sections in divs, as that seems to confuse the s5 javascript. + Test suite updated accordingly. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1562 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-08-13Support for display math; changed ASCIIMathML -> LaTeXMathML:fiddlosopher1-3/+1
Resolves Issue #47. + Added a DisplayMath/InlineMath selector to Math inlines. + Markdown parser yields DisplayMath for $$...$$. + LaTeX parser yields DisplayMath when appropriate. Removed mathBlock parsers, since the same effect is achieved by the math inline parsers, now that they handle display math. + Writers handle DisplayMath as appropriate for the format. + Changed -m option to use LaTeXMathML rather than ASCIIMathML. LaTeXMathML is closer to LaTeX in its display of math, and supports many non-math LaTeX environments. + Modified HTML writer to print raw TeX when LaTeXMathML is being used instead of suppressing it. + Removed ASCIIMathML files from data/ and added LaTeXMathML. + Replaced ASCIIMathML with LaTeXMathML in source files. + Modified README and pandoc man page source. + Modified web page. + Added --latexmathml option (kept --asciimathml as a synonym for backwards compatibility) + Modified tests accordingly; added new tests for display math. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1409 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-27HTML writer: override Text.XHtml's stringToHtml function,fiddlosopher1-3/+3
so that characters below 0xff are not converted to numerical entity references. Also convert '\160' to "&nbsp;". This should aid readability and editability of the HTML source. It does presuppose that the HTML will be served as UTF-8. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1338 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-23HTML writer test: use UTF-8 characters rather than entities.fiddlosopher1-8/+8
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1333 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-15Fixed bug in Markdown parser: regular $s triggering math mode.fiddlosopher1-0/+2
For example: "shoes ($20) and socks ($5)." The fix consists in two new restrictions: + the $ that ends a math span may not be directly followed by a digit. + no blank lines may be included within a math span. Thanks to Joseph Reagle for noticing the bug. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1326 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11In smart mode, use nonbreaking spaces after abbreviations in markdown parser.fiddlosopher1-1/+1
Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does not produce a sentence-separating space. Resolves Issue #75. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1298 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-07-11Treat '\ ' in (extended) markdown as nonbreaking space.fiddlosopher1-2/+2
Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX). git-svn-id: https://pandoc.googlecode.com/svn/trunk@1297 788f1e2b-df1e-0410-8736-df70ead52e1b