diff --git a/md2notion/NotionPyRenderer.py b/md2notion/NotionPyRenderer.py index 600362e..f9fe145 100644 --- a/md2notion/NotionPyRenderer.py +++ b/md2notion/NotionPyRenderer.py @@ -187,6 +187,9 @@ def render_block_code(self, token): ] if token.language != "": matchLang = next((lang for lang in notionSoLangs if re.match(re.escape(token.language), lang, re.I)), "") + if token.language == "dockerfile": # Typora uses `dockerfile` + matchLang = "Docker" + print(f"{token.language} to {matchLang}") if not matchLang: print(f"Code block language {token.language} has no corresponding syntax in Notion.so") else: