Debian Codegraph @

internal/util/md/Readme.md

raw symbols SCIP
1 # Readme
2
3 Package `md` is used to extract the text in code segments of a markdown file.
4
5 Code segments are enclosed in triple backticks: "```", eg:
6
7 ```
8 A : B b | c ;
9 ```
10
11 `md.GetSource(input string) string` returns a string with the same number of bytes as the input with:
12
13 - All characters inside code segments preserved in place;
14 - All space characters (`' ', '\n', '\r', '\t'`) outside code segments preserved in place;
15 - All non-space characters outside code segments replace by `' '` (space).
16 - The enclosing backticks of code segments replaced with spaces, i.e.: ` "```" ` replaced with `" "`.