RST: improve simple tables (#19859)
* RST: improve simple tables * nim 1.0 gotchas * Still allow legacy boundaries like `----`
This commit is contained in:
parent
f7a13f62d6
commit
4341b06f65
16 changed files with 487 additions and 120 deletions
|
|
@ -8,11 +8,11 @@
|
|||
#
|
||||
|
||||
## Nim coroutines implementation, supports several context switching methods:
|
||||
## -------- ------------
|
||||
## ======== ============
|
||||
## ucontext available on unix and alike (default)
|
||||
## setjmp available on unix and alike (x86/64 only)
|
||||
## fibers available and required on windows.
|
||||
## -------- ------------
|
||||
## ======== ============
|
||||
##
|
||||
## -d:nimCoroutines Required to build this module.
|
||||
## -d:nimCoroutinesUcontext Use ucontext backend.
|
||||
|
|
|
|||
|
|
@ -2383,21 +2383,21 @@ iterator walkDirRec*(dir: string,
|
|||
##
|
||||
## Walking is recursive. `followFilter` controls the behaviour of the iterator:
|
||||
##
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
## yieldFilter meaning
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
## ``pcFile`` yield real files (default)
|
||||
## ``pcLinkToFile`` yield symbolic links to files
|
||||
## ``pcDir`` yield real directories
|
||||
## ``pcLinkToDir`` yield symbolic links to directories
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
##
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
## followFilter meaning
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
## ``pcDir`` follow real directories (default)
|
||||
## ``pcLinkToDir`` follow symbolic links to directories
|
||||
## --------------------- ---------------------------------------------
|
||||
## ===================== =============================================
|
||||
##
|
||||
##
|
||||
## See also:
|
||||
|
|
|
|||
|
|
@ -552,15 +552,15 @@ proc escape*(s: string): string =
|
|||
##
|
||||
## Escapes these characters:
|
||||
##
|
||||
## ------------ -------------------
|
||||
## ============ ===================
|
||||
## char is converted to
|
||||
## ------------ -------------------
|
||||
## ============ ===================
|
||||
## ``<`` ``<``
|
||||
## ``>`` ``>``
|
||||
## ``&`` ``&``
|
||||
## ``"`` ``"``
|
||||
## ``'`` ``'``
|
||||
## ------------ -------------------
|
||||
## ============ ===================
|
||||
##
|
||||
## You can also use `addEscaped proc <#addEscaped,string,string>`_.
|
||||
result = newStringOfCap(s.len)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue