summaryrefslogtreecommitdiff
path: root/docutils
Commit message (Collapse)AuthorAgeFilesLines
* release 0.17grubert2021-04-031-4/+4
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8653 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Documentation update.milde2021-03-261-2/+2
| | | | | | | | Fix or remove broken links. Adapt to changes in recent versions. Adapt to state of the art in HTML and web browsers. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8644 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Style ToC in HTML5 writer.milde2021-03-262-22/+34
| | | | | | Set custom list style for contents if there is no section numbering. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8642 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Escape newlines in filenames when reporting an error.milde2021-03-202-8/+10
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8641 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 writer: support <video>.milde2021-03-201-0/+37
| | | | | | Use <video> for images with video MIME types supported by HTML5. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8639 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update comments and advertised future changes.milde2021-03-202-17/+16
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8638 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixup for r8636: use <small> for line numbers.milde2021-03-201-6/+9
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8637 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Place code-block line numbers in pseudo-elements.milde2021-03-195-7/+17
| | | | | | | This way, they are skipped when copying text from code blocks. Solves feature request #32. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8636 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 stylesheet update and cleanup. Class value for documents with ToC.milde2021-03-195-241/+206
| | | | | | | | | * Improve the page layout for responsive design, especially for documents without ToC. * Cleanup, small fixes, and re-organisation. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8635 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update "responsive" HTML5 style sheet.milde2021-03-091-42/+29
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8634 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 writer: Add a `viewport` meta tag to fix rendering in mobile browsers.milde2021-03-093-5/+11
| | | | | | | | The default behaviour of many mobile browsers is to render for a virtual viewport size and scale. This breaks CSS styling with the default stylesheets. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8632 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New responsive style for HTML5.milde2021-03-051-0/+446
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8630 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Simplify default HTML5 stylesheet.milde2021-03-051-16/+12
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8628 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex-writer: add \\leavevmode after term or field name if required.milde2021-02-181-4/+32
| | | | | | Based on patch #176 by John Thorvald Wodder II git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8626 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5 writer: use "figcaption" only for captions nested in a figure.milde2021-02-131-4/+5
| | | | | | | | | Third-party applications may (ab)use the "caption" element for other purposes as a figure caption. See https://github.com/sphinx-doc/sphinx/pull/8870 git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8624 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update planned changes for HTML5 writer.milde2021-02-131-1/+4
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8623 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes and tweaks in the "minimal" HTML5 style sheet.milde2021-02-131-26/+21
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8621 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Improve/Fix the "tuftig" HTML5 style sheet.milde2021-02-131-412/+394
| | | | | | Fix rendering in various browsers and mobile (small screen) devices. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8620 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix class value handling for footnotes and citations in HTML5.milde2021-02-131-11/+10
| | | | | | | | | | | Set class values of the first of a sequence of footnotes or citations also on the wrapping list. Allows class-based CSS styling of the definition-list container of footnote text and citation entries that are given a class value with a with preceding "class" directive. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8619 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.17b2.devgrubert2021-02-101-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8616 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Set version 0.17b1grubert2021-02-101-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8615 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Support "captionbelow" class value for tables in HTML5.milde2021-01-261-2/+6
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8609 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Revert "html5 writer: wrap image elements in <p> unless inline or in figure."milde2021-01-262-39/+9
| | | | | | This wrapper is not required as we can set the display to "block" with CSS. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8607 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Support the "meta" directive in LaTeX.milde2021-01-111-4/+15
| | | | | | | | | Set PDF document properties from "meta" directive content using "hyperref" options. Also set "pdflang" if the document language is not "en". git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8606 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* ODF writer: support "subject" metadata field.milde2021-01-111-4/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8605 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix/improve "odf" writer metadata handling.milde2021-01-081-28/+18
| | | | | | | | | | Fix "keyword" splitting, patch by Casper Meijn, https://github.com/caspermeijn/docutils/commit/af5c7718f68abfb15f5225524b42c9bd1179fce1 Allow generic fields (stored as "Custom Properties"), based on patch #122 by pifi. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8604 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Make "meta" elements available for "latex" and "odt".milde2021-01-084-24/+19
| | | | | | | | | | Basic "odt" support exists, "latex" support is planned. In future, the `meta directive`__ may insert <meta> instead of pending nodes, `making transforms/components.Filter` obsolete (solves bug #241). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8603 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes.milde2021-01-082-21/+20
| | | | | | | | | | Avoid spurious blank lines in LaTeX output. Update comments, trim whitespace. Todo entry for minor parsing bug. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8602 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #177 Arabic mappings by Shahin.milde2021-01-032-0/+163
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8600 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update pygments integration.milde2021-01-031-6/+1
| | | | | | | Pygments no longer uses the pkg_resources.DistributionNotFound exception, so we don't need to import it. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8599 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Don't drop "code" directive content if Warnings are silenced.milde2020-12-162-3/+7
| | | | | | | | | | | | | | Output the content without syntax highlight to prevent data loss. It is still recommended to solve the issue instead of just silencing the warning. (Languages that are unknown to the Pygments Lexer should be specified as :class: option value instead of directive argument.) Thanks to Jérôme Carretero for the report and suggestion. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8596 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New directive option "parser" for the "include" directive.milde2020-12-152-1/+27
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8595 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Merge adjoining <Text> nodes in recommonmark post-processing.milde2020-12-151-5/+11
| | | | | | | Ensure similar XML and pseudoXML output for rst and markdown input while preserving whitespace in HTML and LaTeX output. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8594 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix typo in option help string.milde2020-12-151-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8593 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New option "detailled" for the `pseudoxml` writer.milde2020-12-152-1/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8592 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix LaTeX code for system messages.milde2020-12-142-4/+7
| | | | | | | | | | System messages are admonitions, don't use "alltt" inside them with "legacy class functions". Thanks to Jérôme Carretero for the report. Fix spurious vspace after DUTitle (move hypertarget code inside). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8590 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #410 The 'document' attribute is None for many nodes.milde2020-12-091-6/+19
| | | | | | | Use a "property" function to recursively fetch the `Node.document` value from the parent node. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8589 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes.milde2020-12-092-5/+7
| | | | | | | | Test node class with isinstance() instead of a node's `tagname`. Set "source" and "line" for transition nodes. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8587 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add support for Markdown.milde2020-12-012-2/+139
| | | | | | | | | | | | | | Provide a wrapper for the 3rd party `recommonmark`__ Markdown parser already in use in Sphinx. Add test cases for CommonMark parsing. Also: Correct copyright note and set executable bit on two tests. Fix small typo in test content. __ https://pypi.org/project/recommonmark/ git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8585 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Sort/update writer alias names.milde2020-12-011-4/+11
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8584 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Documentation update.milde2020-12-013-7/+7
| | | | | | | | | Restructuring, New input, and fixed links for TODO list item "Adaptable file extensions". Update/fix some source comments. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8583 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Do not write Docutils-generated ToC, when ``use_latex_toc`` is True.milde2020-12-011-0/+2
| | | | | | | This did happen when publishing from a doctree. Thanks to Thomas Krug for the report. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8582 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Implement feature request #40 Option to embed images as data URI.milde2020-11-273-16/+50
| | | | | | | | | | | | | | | If the new "embed_image" configuration setting is true, the image can be read from the local file system, and its MIME type can be determined, it is base64 encoded and included as a data URI. TODO: * Add an "embed" option to the "image" directive to allow embedding of individual images? * Use direct inlinging for SVG in HTML5? git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8581 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #175 "Fix alignment of nested tables".milde2020-11-251-6/+17
| | | | | | | | | | Thanks to John Thorvald Wodder II for the patch. Additional fixes to table alignment. Expand LaTeX writer test for nested tables. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8577 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add backslash in docstringgrubert2020-11-231-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8574 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #408 Incorrect assert in latex writer for multiple citation references.milde2020-10-281-2/+2
| | | | | | Thanks to Erik Hansen for the report. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8572 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #174 Lowercase new role names on registrationmilde2020-10-281-2/+2
| | | | | | and document that role names are case insensitive. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8571 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply patch #173 by John Thorvald Wodder II.milde2020-10-271-1/+9
| | | | | | Make *TeX writers convert nonstandard table classes to DUclass environments. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8569 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Limit length of input lines and substitution expansion.milde2020-09-144-6/+30
| | | | | | | | | | | | | | | | | | Mitigate the danger of DoS attacs using specially crafted rST input (cf. bug #381). The default value of 10 000 characters should suffice for legitimate use cases (e.g. long paragraphs in auto-wrapping editors or extensive creative use of substitutions). Applications processing untrusted rST might wish to lower this limitation (together with other safety measures described in docs/howto/security.txt). Unsupervised processing of untrusted rST input should always be safeguarded with limits on processing time and memory use. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8565 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Prevent circular inclusionmilde2020-09-102-1/+30
| | | | | | | | | | | | | Check "include" directives for circular dependencies and raise a warning (similar to the one rised when file-insertion is disabled). To prevent endless loops, we rise a warning when a nested inclusion with the same "path", "first-line", "end-line", "start-after", and "end-before" options is detected. In order to achieve this, the current source's parents are logged. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8562 929543f6-e4f2-0310-98a6-ba3bd3dd1d04