Skip to content

Commit

Permalink
Fix bug in replacing LaTeX for add_covariate_effect
Browse files Browse the repository at this point in the history
  • Loading branch information
stellabelin committed Aug 25, 2023
1 parent 9665d93 commit 9f68e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/docs_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def create_r_doc(func):
doc_str += f'{py_to_r_str(row)}\n'

# Replace LaTeX math code
math_pattern = re.compile(r'((:math:)|(math::))\s*`*.+(\\\n)*.+`*')
math_pattern = re.compile(r'((:math:)|(math::))\s*`*.+((\\|,)\n)*.+`*')
doc_str = re.sub(math_pattern, '(equation could not be rendered, see API doc on website)', doc_str)

if 'params' in doc_dict.keys():
Expand Down

0 comments on commit 9f68e48

Please sign in to comment.