diff --git a/nbdev/quarto.py b/nbdev/quarto.py index ea5a87a08..2c60764f4 100644 --- a/nbdev/quarto.py +++ b/nbdev/quarto.py @@ -89,7 +89,7 @@ def _recursive_parser( set_index: bool = True): # If `True`, `index` file will be set to href. for name, val in dir_dict.items(): if type(val) is str: - if re.search('index\..*', re.sub(r'^\d+_', '', val)) and set_index and section: + if re.search(r'index\..*', re.sub(r'^\d+_', '', val)) and set_index and section: section.update({'href': str(dirpath/val)}) else: contents.append(str(dirpath/val)) diff --git a/nbs/api/14_quarto.ipynb b/nbs/api/14_quarto.ipynb index 6d3ffe96b..7cfb1ed53 100644 --- a/nbs/api/14_quarto.ipynb +++ b/nbs/api/14_quarto.ipynb @@ -186,7 +186,7 @@ " set_index: bool = True): # If `True`, `index` file will be set to href.\n", " for name, val in dir_dict.items():\n", " if type(val) is str:\n", - " if re.search('index\\..*', re.sub(r'^\\d+_', '', val)) and set_index and section:\n", + " if re.search(r'index\\..*', re.sub(r'^\\d+_', '', val)) and set_index and section:\n", " section.update({'href': str(dirpath/val)})\n", " else:\n", " contents.append(str(dirpath/val))\n",