From 79155e021521a946af582c133f791a25792c2b21 Mon Sep 17 00:00:00 2001 From: redstoneleo Date: Tue, 10 Jan 2023 19:25:37 +0800 Subject: [PATCH] updated the example It is a very bad idea to `.disable('image')` in the example , most newbies just copy the example to test, by `.disable('image')` causes unnecessary problem for them. I suffered the problem. So let's make a more user-friendly example. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 599c1f9f..789588fe 100644 --- a/README.md +++ b/README.md @@ -55,10 +55,9 @@ from mdit_py_plugins.front_matter import front_matter_plugin from mdit_py_plugins.footnote import footnote_plugin md = ( - MarkdownIt() + MarkdownIt('commonmark' ,{'breaks':True,'html':True}) .use(front_matter_plugin) .use(footnote_plugin) - .disable('image') .enable('table') ) text = ("""