Skip to content

Commit

Permalink
docs: update migrating guide for plugins renderer
Browse files Browse the repository at this point in the history
ref: #354
  • Loading branch information
lepture committed Aug 18, 2023
1 parent b81197d commit 68a2814
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ When customizing renderers, these methods' parameters are changed:
- table_cell(self, text, align=None, is_head=False)
+ table_cell(self, text, align=None, head=False)
For plugins:

.. code-block:: diff
- abbr(self, key, definition)
+ abbr(self, text: str, title: str)
- task_list_item(self, text: str, level: int, checked: bool)
+ task_list_item(self, text: str, checked: bool)
AstRenderer
~~~~~~~~~~~

Expand Down

0 comments on commit 68a2814

Please sign in to comment.