summary refs log tree commit diff stats
path: root/lib/packages/docutils/rst.nim
Commit message (Collapse)AuthorAgeFilesLines
* follow-up #17837: add `Console` for interactive sessions (#17930)Andrey Makarov2021-05-061-6/+5
| | | | | * follow-up #17837: add `Console` for interactive sessions * fix Latex
* Fix nim-lang/nimforum#285 - punctuation after URL (#17908)Andrey Makarov2021-05-011-11/+17
| | | | | * Fix nim-lang/nimforum#285 - punctuation after URL * keep only one leaf in a rnStandaloneHyperlink * add more complex URL
* close #16646; `since` now works with bootstrap nim post csources_v1 (#17895)Timothee Cour2021-04-301-3/+2
| | | | | | | * revive #16627 now that csources_v1 was merged * use dedent in rst.nim, refs https://github.com/nim-lang/Nim/pull/17257#discussion_r589025683 * fix test and improve rendering of a rst warning
* more strict RST inline markup parsing (#17827)Andrey Makarov2021-04-291-11/+41
| | | | | * more strict RST inline markup parsing * add test for unexpected bonus * introduce `roPreferMarkdown`
* add RST highlighting for command line / shells (also fixes #16858) (#17789)Andrey Makarov2021-04-211-20/+29
|
* rst indentation fixes (ref #17340) (#17715)Andrey Makarov2021-04-151-31/+64
|
* restyle RST option lists (#17637)Andrey Makarov2021-04-101-0/+2
| | | | | | | | | | | | | * WIP: restyle RST option lists * apply similar style to Latex * fix tests * minor visual tweaks * update tests * remove leftover comments
* further progress on rst roles & directives (fix #17646) (#17659)Andrey Makarov2021-04-081-34/+76
| | | | | | | * further progress on rst roles & dir-s (fix #17646) * fix documents according to the messages * fix bug 17 from #17340
* fix rst option list at EOF (follow-up #17442) (#17638)Andrey Makarov2021-04-041-1/+1
|
* enable syntax highlighting for inline code (#17585)Andrey Makarov2021-04-021-20/+96
| | | | | | | | | | | | | | | | | | | | | | | | | * enable syntax highlighting for inline code * finish '.. default-role' and preliminary '.. role' implementation * more compact check in dirRole * set :literal: as default role for *.rst * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * use whichRole for setting currRoleKind * Update lib/packages/docutils/rst.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * rename rnGeneralRole -> rnUnknownRole Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* RST: enable parsing of prefix roles (ref #17340) (#17514)Andrey Makarov2021-03-291-18/+20
|
* remove docutils.nimble (not a real nimble package, and affected canonical ↵Timothee Cour2021-03-291-3/+0
| | | | | | | imports) (#17544) * remove docutils.nimble (not a real nimble package, and affected canonical imports) * cleanup redundant references
* fix RST parsing after option lists (#17442)Andrey Makarov2021-03-251-1/+72
|
* fix #17260 render `\` properly in nim doc, rst2html (#17315)Timothee Cour2021-03-241-5/+16
|
* Rst test check messages (fix #17280) (#17338)Andrey Makarov2021-03-171-9/+20
|
* allow short-style rst references with symbols (#17372)Andrey Makarov2021-03-171-11/+30
|
* fix RST parsing when no indent after enum.item (fix #17249) (#17257)Andrey Makarov2021-03-121-7/+44
|
* Use readable escape sequences (#17241)Clyybber2021-03-031-11/+11
|
* RST heading improvements (fix #17091) (#17195)Andrey Makarov2021-03-021-41/+97
|
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-221-83/+79
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-201-6/+33
|
* RST: implement footnotes and citations (#16960)Andrey Makarov2021-02-151-27/+365
| | | | | | | | | * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* rst: single backticks now render correctly in both rst2html and github (#17028)Timothee Cour2021-02-131-0/+5
| | | | | | * rst: `` => ` * support default-role in rst2html * update docstyle regarding single vs double backticks
* parse RST headings when EOF follows them (#17014)Andrey Makarov2021-02-121-3/+5
|
* fix some warnings (#16952)flywind2021-02-081-1/+1
|
* RST: implement internal targets (#16614)Andrey Makarov2021-01-111-41/+127
|
* RST: improve line blocks (#16518)Andrey Makarov2020-12-311-8/+16
|
* RST: fix directive with fields (#16490) (#16493)Andrey Makarov2020-12-291-1/+2
| | | | | | | * RST: fix directive with fields (#16490) * Update tests/stdlib/trstgen.nim Co-authored-by: Clyybber <darkmine956@gmail.com>
* RST: implement admonitions (#16438)Andrey Makarov2020-12-271-52/+103
|
* RST enumlist followup (#16382)Andrey Makarov2020-12-191-7/+18
| | | | | * fix matching of enumerator #) * RST: markdown list with auto-enumerator `1`
* doc/rst2html: some few fixes for enumerated and bullet lists (#16295)Andrey Makarov2020-12-141-26/+109
| | | | | | | | | | | | * fix bullet/enumarated lists with many blank lines * fix enumerated list parsing * fix parse failure when next line after list empty * implement arbitrary start of enumerator * check that enumerators are in order * remove redundant start=x if x=1 or a * add some doc on implemented features * update start in rst_examples.rst * allow upper-case letters + more docs
* RST tables: fix latex col number; allow less than three of `=` (#16040)Andrey Makarov2020-12-041-22/+75
|
* refactoring: modernize rst.nim (#15953)Miran2020-11-131-509/+449
|
* rst: add support for markdown tables (#15854)Miran2020-11-101-0/+73
| | | | | | | * rst: add support for markdown tables * change template into proc * don't create unnecessary `seq[string]`
* fix #11537, correct parse inline code without surrounding spaces (#15399)Miran2020-09-251-0/+2
|
* fix #14474, crash inside of a sole code-block (#15402)Miran2020-09-241-0/+2
|
* {.deprecated: [existsFile: fileExists].} (#14735)Timothee Cour2020-07-021-2/+2
| | | | | | | | | * {.deprecated: [existsFile: fileExists].} * s/existsFile/fileExists/ except under deps * workaround pending #14819 * fix test
* Remove the uses of {.procvar.} pragma (#14359)Kaushal Modi2020-05-151-2/+2
| | | | | | | This pragma did nothing. Ref: - https://github.com/nim-lang/Nim/issues/2172#issuecomment-383276469 - https://github.com/nim-lang/Nim/issues/12975
* Rst parser respect `:start-after:` and `:end-before:` in `include` directive ↵Kamanji2020-01-051-10/+39
| | | | | | | | | | | | | (#12972) * [FEATURE] rst parser respect :start-after: in include Rst parser now respects `:start-after:` and `:end-before:` attributes for `include` directive. * [DOC] include directive parsing proc update * [TEST] Added unit tests for include rst directive in `rst` module
* fix several typos in documentation and comments (#12553)Nindaleth2019-10-301-1/+1
|
* rst: parse brackets individually, fixes #10475 (#10997)Miran2019-04-101-6/+17
|
* fixes a critical GC safety inference bug (#10615)Andreas Rumpf2019-03-051-2/+2
| | | | | | * fixes a critical GC safety inference bug * make nimsuggest compile again * make Nimble compile again
* StringStream and parseJson, parseCfg, parseSql et al for the vm (#10746)Arne Döring2019-02-281-9/+8
|
* document proper imports, fixes #8164 (#10698)Miran2019-02-191-0/+2
|
* fixes #10602Araq2019-02-081-2/+2
|
* RST parser: fixes #8158Araq2019-01-111-3/+3
|
* docgen: support markdown headings tooAraq2019-01-111-8/+31
|
* docgen: support markdown link syntax; enable markdown extensionsAraq2019-01-111-0/+28
|
* name mangling: also special case the backslash characterAraq2018-09-171-0/+1
|
* fixes #7500Araq2018-09-171-2/+26
|