{"id":27135,"library":"markdown-strings","title":"markdown-strings","description":"A Python library for programmatically generating Markdown formatted text. Current version 3.4.0 (with v4.0.0a1 alpha release featuring a complete API rewrite). Release cadence: irregular.","status":"active","version":"3.4.0","language":"python","source_language":"en","source_url":"https://github.com/awesmubarak/markdown_strings","tags":["markdown","generation","text-formatting"],"install":[{"cmd":"pip install markdown-strings","lang":"bash","label":"latest stable"}],"dependencies":[],"imports":[{"note":"The canonical import alias is 'md', but some tutorials use 'mds'.","wrong":"import markdown_strings as mds","symbol":"md","correct":"import markdown_strings as md"},{"note":"Function is named 'header', not 'heading'.","wrong":"from markdown_strings import heading","symbol":"header","correct":"from markdown_strings import header"}],"quickstart":{"code":"import markdown_strings as md\ntext = md.header(\"Hello, World!\", 1)\ntext += md.bold(\"Important\")\nprint(text)","lang":"python","description":"Generate a level-1 heading and bold text."},"warnings":[{"fix":"Stay on 3.x until stable v4 release.","message":"v4.0.0a1 is a complete API rewrite. Functions and signatures have changed. Do not upgrade to alpha in production.","severity":"breaking","affected_versions":">=4.0.0a1"},{"fix":"Use md.header('text', 2) for ## heading, not md.header('text', 2).","message":"The function name 'header' takes level as second argument (1-indexed). This differs from some other Markdown libraries.","severity":"gotcha","affected_versions":"*"},{"fix":"Use md.strong('text') and md.emphasis('text') in v4.","message":"Function 'bold' and 'italic' are deprecated in v4 alpha; use 'strong' and 'emphasis' instead.","severity":"deprecated","affected_versions":">=4.0.0a1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Downgrade to v3.4.0: pip install markdown-strings==3.4.0","cause":"You installed v4 alpha which removed 'bold'.","error":"AttributeError: module 'markdown_strings' has no attribute 'bold'"},{"fix":"Add 'import markdown_strings as md' at the top of your script.","cause":"Forgot to import or used incorrect import statement.","error":"NameError: name 'md' is not defined"},{"fix":"Use header('text', 1) with two arguments.","cause":"Called header('text') without specifying level.","error":"TypeError: header() missing 1 required positional argument: 'level'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}