Closed tringuy1993 closed 2 years ago
Windows gives error due to the following function in directives.py:
def create_prism(file): source = Path(file).read_text() source = source.replace("component = ", "", 1) return dmc.Prism(source, language="python")
Adding encoding='utf-8' solves the error for Windows user:
encoding='utf-8'
def create_prism(file): source = Path(file).read_text(encoding='utf-8') source = source.replace("component = ", "", 1) return dmc.Prism(source, language="python")
This PR should only have 1 file: directives.py.
Windows gives error due to the following function in directives.py:
Adding
encoding='utf-8'
solves the error for Windows user: