We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6d5cd2 commit ed5777dCopy full SHA for ed5777d
src/cfengine_cli/docs.py
@@ -218,7 +218,11 @@ def _markdown_code_checker(
218
language = supported_languages[code_block["language"]]
219
snippet_path = f"{origin_path}.snippet-{i + 1}.{language}"
220
221
- if extract and "noextract" not in code_block["flags"]:
+ flags = code_block["flags"]
222
+ if "noextract" in flags or "skip" in flags:
223
+ # code block was marked to be skipped
224
+ continue
225
+ if extract:
226
fn_extract(
227
origin_path,
228
snippet_path,
0 commit comments