Skip to content

Commit

Permalink
Lots of fixes for issue #25.
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Masotti committed Apr 9, 2021
1 parent 88b0267 commit 3b5c1a2
Show file tree
Hide file tree
Showing 4 changed files with 472 additions and 147 deletions.
11 changes: 10 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Main Interface
--------------

Examples for the most relevant api functions can be viewed in the test
file. md_toc's API uses `type hints`_ instead of assertions to check input and
file. md_toc's API uses `type hints`_ instead of assertions to check input and
output types.

.. _type hints: https://docs.python.org/3/library/typing.html
Expand All @@ -29,6 +29,15 @@ output types.
.. autofunction:: is_closing_code_fence
.. autofunction:: init_indentation_status_list
.. autofunction:: toc_renders_as_coherent_list
.. autofunction:: remove_html_tags
.. autofunction:: get_generic_fdr_indices
.. autofunction:: get_fdr_indices
.. autofunction:: can_open_emphasis
.. autofunction:: can_close_emphasis
.. autofunction:: remove_emphasis
.. autofunction:: get_nearest_list_id



Exceptions
----------
Expand Down
3 changes: 2 additions & 1 deletion md_toc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@

from .api import (
get_md_header, get_atx_heading, build_toc_line, remove_html_tags,
get_generic_fdr_indices, get_fdr_indices,
get_generic_fdr_indices, get_fdr_indices, can_open_emphasis,
can_close_emphasis, remove_emphasis, get_nearest_list_id,
increase_index_ordered_list, build_anchor_link, init_indentation_log,
compute_toc_line_indentation_spaces, build_toc_line_without_indentation,
build_toc, build_multiple_tocs, write_string_on_file_between_markers,
Expand Down
Loading

0 comments on commit 3b5c1a2

Please sign in to comment.