| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8864 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8859 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
Still experimental.
Unfortunately, recommonmark_ is no longer maintained
(https://github.com/readthedocs/recommonmark/issues/221).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8857 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
With values "embed", "eager", "lazy", cf, feature-request #78.
Obsoletes "embed_image".
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8853 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current heuristic for detection of circular includes
fails with nested parsing. Line numbering differs in nested
state-machines, inclusions don't show up in the parent, if
a view is detached (e.g. for table cell content).
The new heuristic uses a "magic" comment instead of line numbers
to keep a log of recursive inclusions.
Add a test case for a false positive and a case for
too late detection in parsed includes.
Adapt tests to (irrelevant) side effects of the patch.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8851 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8848 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8845 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8844 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8843 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Fix docstring for states.Body.split_attribution().
Patch by Mickey Endito.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8842 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8841 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
New unittest case for the internal "source" and "line" attributes.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8840 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8839 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
Only specify table column widths, if the "widths" option is set
and is not "auto".
The `table_style`_ setting "colwidths-grid" restores the
current default.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
| |
New configuration setting "legacy_column_widths" for backwards
compatibility.
Only write "continued on next page..." if it fits without
making the table columns wider.
Table `width` option overrides conflicting "auto" column `widths`.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8835 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Testing with "alltests.py" is currently impossible due to
caching (see itest_hyperlinks_de.py)
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8831 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
Remove workaround for legacy versions of the "hyperref"
LaTeX package.
Remove spurious import.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8830 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
No newline (new paragraph) before a table in compounds.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8828 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Improve spacing,
allow customization.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8826 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Don't add ``\phantomsection`` to labels in math-blocks.
New optional argument `newline` for LaTeXTranslator.ids_to_labels().
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8825 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix newlines after/before ids_to_labels() (cf. patch #183).
Refactor/revise ToC writing.
Don't write `\phantomsection`, if a local ToC is skipped.
Functional test for "--use-docutils-toc" in XeTeX writer test).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8824 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Based on patch 3 in patches #183 by Clément Pit-Claudel.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8823 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Do not use the "alltt" enviromnent in sidebars.
In admonitions and system-messages, "alltt" is used
unless the "legacy-class-functions" setting is True.
(Admonitions and system-messages are implemented as
environments since rev 8479.)
Thanks to Clément Pit-Claudel for reporting.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8820 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8819 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
Test for more problems with tables.
Cosmetic fixes, reword, restructure.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8810 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8807 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Math accent commands more similar to their LaTeX behaviour.
Additions for HTML export.
Use boolean values for boolean node arguments.
Downcase node arguments before storing.
Use class argument "boldsymbol" for \boldsymbol content.
Alignment of multi line equations similar to AMS-LaTeX "align" environment.
Add space after bracket in "cases" environment, left-align columns.
Fix spacing before "unary" minus.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8805 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8804 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8803 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
Also add a test case.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8802 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8799 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
STIX is free, widely supported, and comprehensive.
(On the downside: it is considerably smaller than DejaVu:
no problem with Chromium/Chrome but in Firefox a larger font-size
might be advised.)
Work around bugs/problems in STIX:
"medium mathematical space" is too wide,
"vertical line" glyphs leave gaps when stacked,
upright integrals provide better alignment of limits.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8798 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
| |
Scale variable sized operators with CSS instead of constructing from pieces.
Fix Unicode translations for N-ary operators.
Scale stretch big delimiters instead of scaling.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8796 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
| |
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8795 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
math accents/combining characters:
- insert combining character after first character of argument
(mimic LaTeX behaviour).
- support non alphabetical base-character (\not{\in} and similar).
- use precomposed characters if possible (normalization)
Cleanup: update comments, remove not required code.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8794 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Fork from elyxer (https://github.com/alexfernandez/elyxer).
Remove code that is not requried for math conversion.
Fix/update LaTeX/Unicode character translation, use common codebase
with MathML.
Support more commands.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8793 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
| |
The "section_self_link" setting triggers this behaviour. As it is
currently only implemented for HTML5, the setting is defined for this
writer only.
The self-link "invisible" by default. The provided stylesheet
"responsive.css" gives an example how it can be made visible when
hovering over the section heading.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8788 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Move space character between section number and heading
into "sectnum" span. Simplify code in _html_base.py.
responsive.css: highlight target of current URL,
show an arrow when hovering over section heading
to hint at the target of toc-backlinks.
Test setting `--toc_backlinks=top` and the "responsive.css" stylesheet.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8787 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mark the internal back-refences from section headings to the ToC
with DPub-ARIA role "doc-backref".
Use "aria-level" instead of a class argument value for section headings
with nesting level > 6 (for level 1 to 6, the level is determined by
the HTML tag).
Mind that in HTML5, heading level 1 is reserved for the document title
and section headings start with level 2.
Add functional test sample for deeply nested sections.
Merge functional tests for additonal HTML5 features.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8786 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
Move additional tests for special features or problems
specific to the output format from the "standalone_..."
generic test case to additional tests.
Use unit test instead of functional test for the fix in
r6155 (hyperlink references in substitutions).
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8784 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Items of a definition list with class argument "details" are
converted to `details disclosure elements`.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8783 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
| |
The "rawsource" argument of ``nodes.Text.__init__`` is ignored and deprecated.
Fix the documentation of nodes.Text.__new__().
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8782 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
| |
Use <div> with DPub ARIA role "doc-biblioentry" for citations.
Wrapping citations in a list (required for elements with role
"doc-biblioentry").
Use role "doc-biblioref" for citation-references.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8779 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
ARIA roles for footnote references and backlinks.
Use class value "backrefs" instead of "fn-backref" for a span of
back-references.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8777 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
| |
<aside> for topics (except abstract and toc), admonitions,
and system messages.
<nav> and DPub Aria role="doc-toc" for the Table of Contents.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8775 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
| |
Use node[...] instead of node.get(...) for basic attributes.
Remove HTMLTranslator.topic_classes auxiliary attribute.
HTML5: Do not add "compound-first", "compound-middle",
or "compound-last" to elements nested in a compound.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8774 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use "aside" instead of a description list for footnotes and citations.
While providing decent standard rendering, footnote label and text
are no instance of a "definition term" and "definition".
Use "invisible" footnote label brackets instead of display="none"
with superscript footnotes so that the brackets are kept with
drag-and-drop.
Adapt stylesheets.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8773 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
|
| |
Auto-generated IDs use the tag name as prefix.
Set auto_id_prefix_ to "id" if you want unchanged auto-IDs.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8771 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
I.e. if the id_prefix setting is non-empty.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8770 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|
| |
|
|
|
|
| |
LaTeX Writer: Fix tocdepth when chapter/part in use.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8769 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
|