{"id":23022,"library":"zope-structuredtext","title":"zope.structuredtext","description":"zope.structuredtext provides a parser for StructuredText, a lightweight markup language. Version 6.0 requires Python >=3.9. The package is in maintenance mode with infrequent releases.","status":"maintenance","version":"6.0","language":"python","source_language":"en","source_url":"http://github.com/zopefoundation/zope.structuredtext","tags":["structuredtext","markup","parser","zope","zodbbrowser"],"install":[{"cmd":"pip install zope.structuredtext","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Standard import since v4.0","symbol":"StructuredText","correct":"from zope.structuredtext import StructuredText"},{"note":"Converts HTML to StructuredText","symbol":"html2structuredtext","correct":"from zope.structuredtext import html2structuredtext"},{"note":"Wrong casing: function is lowercase!","wrong":"from zope.structuredtext import StructuredText2Html","symbol":"structuredtext2html","correct":"from zope.structuredtext import structuredtext2html"}],"quickstart":{"code":"from zope.structuredtext import StructuredText\n\nwiki = StructuredText('''\nTitle\n-----\n\nThis is a paragraph with _italic_, *bold*, and a [[link]].\n\n* Bullet 1\n* Bullet 2\n''')\n\nprint(wiki.html())","lang":"python","description":"Parse a StructuredText string and generate HTML output."},"warnings":[{"fix":"Call wiki.html() without arguments, or parse with options before generation.","message":"In version 6.0, the 'html' method no longer accepts parameters like 'level'. Use the newer API or wrap calls.","severity":"breaking","affected_versions":">=6.0"},{"fix":"Replace with 'from zope.structuredtext import structuredtext2html'.","message":"The function 'StructuredText2Html' was removed in v5.0; use 'structuredtext2html' instead.","severity":"deprecated","affected_versions":">=5.0"},{"fix":"Ensure markup is lowercase where required. Refer to StructuredText spec.","message":"The parser is case-sensitive for markup. For example, '_italic_' works, but '_Italic_' fails if not matching.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Use 'from zope.structuredtext import structuredtext2html'.","cause":"The old function name was removed in v5.0.","error":"AttributeError: module 'zope.structuredtext' has no attribute 'StructuredText2Html'"},{"fix":"Use StructuredText markup only. For code blocks, indent or use [[code]].","cause":"StructuredText does not support reStructuredText directives like '.. code::'.","error":"ValueError: Unrecognized directive: '.. code:: python'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}