Markdown indented code blocks (#20473)
* Implement Markdown indented code blocks
Additional indentation of 4 spaces makes a block an "indented code block"
(monospaced text without syntax highlighting).
Also `::` RST syntax for code blocks is disabled.
So instead of
```rst
see::
Some code
```
the code block should be written as
```markdown
see:
Some code
```
* Migrate RST literal blocks :: to Markdown's ones
This commit is contained in:
parent
594e93a66b
commit
6505bd347d
33 changed files with 697 additions and 603 deletions
|
|
@ -1,12 +1,17 @@
|
|||
|
||||
Usage:
|
||||
|
||||
* To search::
|
||||
nimgrep [options] PATTERN [(FILE/DIRECTORY)*/-]
|
||||
* To replace::
|
||||
nimgrep [options] PATTERN --replace REPLACEMENT (FILE/DIRECTORY)*/-
|
||||
* To list file names::
|
||||
nimgrep [options] --filenames [PATTERN] [(FILE/DIRECTORY)*]
|
||||
* To search:
|
||||
|
||||
nimgrep [options] PATTERN [(FILE/DIRECTORY)*/-]
|
||||
|
||||
* To replace:
|
||||
|
||||
nimgrep [options] PATTERN --replace REPLACEMENT (FILE/DIRECTORY)*/-
|
||||
|
||||
* To list file names:
|
||||
|
||||
nimgrep [options] --filenames [PATTERN] [(FILE/DIRECTORY)*]
|
||||
|
||||
Positional arguments, from left to right:
|
||||
1) PATTERN is either Regex (default) or Peg if `--peg` is specified.
|
||||
|
|
@ -42,10 +47,11 @@ Options:
|
|||
to abort any time without touching the file
|
||||
--filenames just list filenames. Provide a PATTERN to find it in
|
||||
the filenames (not in the contents of a file) or run
|
||||
with empty pattern to just list all files::
|
||||
nimgrep --filenames # In current dir
|
||||
nimgrep --filenames "" DIRECTORY
|
||||
# Note empty pattern "", lists all files in DIRECTORY
|
||||
with empty pattern to just list all files:
|
||||
|
||||
nimgrep --filenames # In current dir
|
||||
nimgrep --filenames "" DIRECTORY
|
||||
# Note empty pattern "", lists all files in DIRECTORY
|
||||
* Interprete patterns:
|
||||
--peg PATTERN and PAT are Peg
|
||||
--re PATTERN and PAT are regular expressions (default)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue