aboutsummaryrefslogtreecommitdiff
path: root/test/s5-basic.html
AgeCommit message (Collapse)AuthorFilesLines
2021-12-22Add text wrapping to HTML output.John MacFarlane1-1/+2
Previously the HTML writer was exceptional in not being sensitive to the `--wrap` option. With this change `--wrap` now works for HTML. The default (as with other formats) is automatic wrapping to 72 columns. A new internal module, T.P.Writers.Blaze, exports `layoutMarkup`. This converts a blaze Html structure into a doclayout Doc Text. In addition, we now add a line break between an `img` tag and the associated `figcaption`. Note: Output is never wrapped in `writeHtmlStringForEPUB`. This accords with previous behavior since previously the HTML writer was insensitive to `--wrap` settings. There's no real need to wrap HTML inside a zipped container. Note that the contents of script, textarea, and pre tags are always laid out with the `flush` combinator, so that unwanted spaces won't be introduced if these occur in an indented context in a template. Closes #7764.
2020-05-18Use CSS in favor of <br> for display math (#6372)Lila1-0/+1
Some CSS to ensure that display math is displayed centered and on a new line is now included in the default HTML-based templates; this may be overridden if the user wants a different behavior.
2019-12-05HTML-based templates: Add CSS to suppress bullet on unordered task lists.John MacFarlane1-0/+1
2019-09-05Add div.hanging-indent CSS to HTML templates.John MacFarlane1-0/+1
2019-09-05Add partial styles.html in HTML5 template.John MacFarlane1-4/+4
Avoid duplication in HTML templates by using styles.html partial. Change indentation of styles in template.
2017-12-26HTML writer: Use br elements in line blocks...John MacFarlane1-1/+0
instead of relying on CSS. Closes #4162. HTML-based templates have had the custom CSS for div.line-block removed. Those maintaining custom templates will want to remove this too. We still enclose line blocks in a div with class line-block.
2017-12-03Include default CSS for 'underline' class in HTML-based templates.John MacFarlane1-0/+1
2017-11-02Improved support for columns in HTML.John MacFarlane1-3/+3
* Move as much as possible to the CSS in the template. * Ensure that all the HTML-based templates (including epub) contain the CSS for columns. * Columns default to 50% width unless they are given a width attribute. Closes #4028.
2017-10-31HTML Writer: consistently use dashed class-namesmb211-1/+1
see #3556
2017-08-14Implement multicolumn support for slide formats.John MacFarlane1-0/+1
The structure expected is: <div class="columns"> <div class="column" width="40%"> contents... </div> <div class="column" width="60%"> contents... </div> </div> Support has been added for beamer and all HTML slide formats. Closes #1710. Note: later we could add a more elegant way to create this structure in Markdown than to use raw HTML div elements. This would come for free with a "native div syntax" (#168). Or we could devise something specific to slides
2017-04-25HTML line block: Use class instead of style attribute.John MacFarlane1-0/+1
We now issue `<div class="line-block">` and include a default definition for `line-block` in the default templates, instead of hard-coding a `style` on the div. Closes #1623.
2017-03-04Regularized CSS in html/epub/html slide templates.John MacFarlane1-1/+4
All templates now include `code{white-space: pre-wrap}` and CSS for `q` if `--html-q-tags` is used. Previously some templates had `pre` and others `pre-wrap`; the `q` styles were only sometimes included. See #3485.
2017-03-04templates: CSS for .smallcaps, closes #1592 (#3485)Mauro Bieg1-1/+1
2017-02-04Moved tests/ -> test/.John MacFarlane1-0/+56