Nim/lib
Andrey Makarov 417b90a7e5
Improve Markdown code blocks & start moving docs to Markdown style (#19954)
- add additional parameters parsing (other implementations will just
  ignore them). E.g. if in RST we have:

  .. code:: nim
     :test: "nim c $1"

     ...

  then in Markdown that will be:

  ```nim test="nim c $1"
  ...
  ```

- implement Markdown interpretation of additional indentation which is
  less than 4 spaces (>=4 spaces is a code block but it's not
implemented yet). RST interpretes it as quoted block, for Markdown it's
just normal paragraphs.
- add separate `md2html` and `md2tex` commands. This is to separate
  Markdown behavior in cases when it diverges w.r.t. RST significantly —
most conspicously like in the case of additional indentation above, and
also currently the contradicting inline rule of Markdown is also turned
on only in `md2html` and `md2tex`. **Rationale:** mixing Markdown and
RST arbitrarily is a way to nowhere, we need to provide a way to fix the
particular behavior. Note that still all commands have **both** Markdown
and RST features **enabled**. In this PR `*.nim` files can be processed
only in Markdown mode, while `md2html` is for `*.md` files and
`rst2html` for `*.rst` files.
- rename `*.rst` files to `.*md` as our current default behavior is
  already Markdown-ish
- convert code blocks in `docgen.rst` to Markdown style as an example.
  Other code blocks will be converted in the follow-up PRs
- fix indentation inside Markdown code blocks — additional indentation
  is preserved there
- allow more than 3 backticks open/close blocks (tildas \~ are still not
  allowed to avoid conflict with RST adornment headings) see also
https://github.com/nim-lang/RFCs/issues/355
- better error messages
- (other) fix a bug that admonitions cannot be used in sandbox mode; fix
  annoying warning on line 2711
2022-07-15 19:27:54 +02:00
..
arch/x86 Coroutine rework. 2017-02-20 17:24:19 +02:00
core macros: make hasCustomPragma more permissive (#19747) 2022-04-25 22:16:11 +02:00
deprecated/pure remove std/sharedstrings (#19228) 2021-12-09 22:37:59 +08:00
experimental gitutils: add diffStrings, diffFiles, and use it in testament to compare expected vs gotten (#17892) 2021-04-30 11:00:33 +02:00
genode Genode platform fixes (#17521) 2021-04-09 16:29:10 +02:00
genode_cpp [std/locks]close #7998(complete condition variables) (#17711) 2021-04-19 10:51:13 +02:00
impure fix typo in nre.nim (#19915) 2022-06-21 09:53:46 +08:00
js jsffi add missing braces (#19948) 2022-06-30 23:18:11 +02:00
packages/docutils Improve Markdown code blocks & start moving docs to Markdown style (#19954) 2022-07-15 19:27:54 +02:00
posix Remove deprecated posix proc (#19774) 2022-05-08 11:56:46 +02:00
pure [Orc] fixes "streams.readDataStr segafaults" when accepting a string literal (#20019) [backport] 2022-07-15 09:42:54 +02:00
std sysrand: fix syscall signature [backport] (#19982) 2022-07-07 21:26:58 +08:00
system Fixing nimRawSetJmp for vcc and clangcl on Windows (#19959) 2022-07-04 13:52:44 +02:00
windows enable style:usages for stdlib tests [backport: 1.6] (#19715) 2022-04-13 11:53:02 +02:00
wrappers Correctly import libcrypto functions using dynlib (#19881) 2022-06-13 09:22:20 +02:00
cycle.h Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
deps.txt added lib/deps.txt 2021-06-03 14:00:53 +02:00
nimbase.h Add error message to pointer size check assert in lib/nimbase.h (#19549) 2022-02-27 15:36:16 +01:00
nimhcr.nim fixes #17647 (#17667) 2021-04-07 23:26:53 +02:00
nimhcr.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
nimrtl.nim add missing docs (#18758) 2021-08-29 09:18:54 +02:00
nimrtl.nim.cfg Initial version of the hot-code reloading support for native targets (#10729) 2019-02-26 15:48:55 +01:00
stdlib.nimble attempt to make the build green again 2017-01-07 02:55:15 +01:00
system.nim fixes #20015; document shallowCopy does a deep copy with ARC/ORC (#20025) 2022-07-14 18:42:56 +08:00
system_overview.rst move io out of system (#19442) 2022-02-02 17:10:11 +01:00