package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: May 14, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Readme
Package md
is used to extract the text in code segments of a markdown file.
Code segments are enclosed in triple backticks: "```", eg:
A : B b | c ;
md.GetSource(input string) string
returns a string with the same number of bytes as the input with:
- All characters inside code segments preserved in place;
- All space characters (
' ', '\n', '\r', '\t'
) outside code segments preserved in place;
- All non-space characters outside code segments replace by
' '
(space).
- The enclosing backticks of code segments replaced with spaces, i.e.:
"```"
replaced with " "
.
Documentation
¶
Package md extracts code sections of markdown files
GetSource returns code sections enclosed in triple backticks.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.