diff --git a/tools/schemacode/bidsschematools/render.py b/tools/schemacode/bidsschematools/render.py index 7af32cc3dc..1ee8e7cb95 100644 --- a/tools/schemacode/bidsschematools/render.py +++ b/tools/schemacode/bidsschematools/render.py @@ -7,6 +7,7 @@ import pandas as pd import yaml +from markdown_it import MarkdownIt from tabulate import tabulate from . import utils @@ -469,11 +470,43 @@ def make_filename_template( ) codeblock = codeblock.expandtabs(4) + codeblock = append_filename_template_legend(codeblock, pdf_format) codeblock = codeblock.replace("SPEC_ROOT", get_relpath(src_path)) return codeblock +def append_filename_template_legend(text, pdf_format=False): + legend = """ +- Filename entities or folders between square brackets + (for example, `[_ses-