Browse Source

Fixes.

master
Franco Masotti 1 year ago
parent
commit
e77230bd94
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 2
      asciinema/md_toc_asciinema_0_0_1.json
  2. 2
      asciinema/md_toc_asciinema_1_0_0.json
  3. 2
      assets/buy_me_a_coffee.svg
  4. 3
      docs/api.rst
  5. 2
      docs/source_code.rst
  6. 4
      md_toc/__init__.py

2
asciinema/md_toc_asciinema_0_0_1.json

@ -2307,4 +2307,4 @@
"[vm@parabola-playground md-toc-example]$ "
]
]
}
}

2
asciinema/md_toc_asciinema_1_0_0.json

@ -99,4 +99,4 @@
"# Hi\r\n\r\n[](TOC)\r\n\r\n- [Hi](#hi)\r\n - [How are you? !!!](#how-are-you)\r\n - [fine, thanks](#fine-thanks)\r\n - [Bye](#bye)\r\n - [Bye bye](#bye-bye)\r\n\r\n[](TOC)\r\n\r\nhey\r\n\r\n## How are you? !!!\r\n\r\n## fine, thanks\r\n\r\n### Bye\r\n\r\n## Bye bye\r\n"
]
]
}
}

2
assets/buy_me_a_coffee.svg

@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="106" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="106" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555555" d="M0 0h31v20H0z"/><path fill="#ff813f" d="M31 0h75v20H31z"/><path fill="url(#b)" d="M0 0h106v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="165" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="210">buy</text><text x="165" y="140" transform="scale(.1)" textLength="210">buy</text><text x="675" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="650">me a coffee</text><text x="675" y="140" transform="scale(.1)" textLength="650">me a coffee</text></g> </svg>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="106" height="20"><linearGradient id="b" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="a"><rect width="106" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#a)"><path fill="#555555" d="M0 0h31v20H0z"/><path fill="#ff813f" d="M31 0h75v20H31z"/><path fill="url(#b)" d="M0 0h106v20H0z"/></g><g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="110"> <text x="165" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="210">buy</text><text x="165" y="140" transform="scale(.1)" textLength="210">buy</text><text x="675" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="650">me a coffee</text><text x="675" y="140" transform="scale(.1)" textLength="650">me a coffee</text></g> </svg>

Before

Width:  |  Height:  |  Size: 964 B

After

Width:  |  Height:  |  Size: 965 B

3
docs/api.rst

@ -32,7 +32,7 @@ output types.
.. autofunction:: remove_html_tags
.. autofunction:: remove_emphasis
.. autofunction:: replace_and_split_newlines
.. autofunction:: filter_indices_from_line
Exceptions
----------
@ -43,3 +43,4 @@ Exceptions
.. autoexception:: StdinIsNotAFileToBeWritten
.. autoexception:: TocDoesNotRenderAsCoherentList
.. autoexception:: StringCannotContainNewlines
.. autoexception:: CannotTreatUnicodeString

2
docs/source_code.rst

@ -2,3 +2,5 @@ Source code
===========
https://software.franco.net.eu.org/frnmst/md-toc
https://codeberg.org/frnmst/md-toc
https://github.com/frnmst/md-toc

4
md_toc/__init__.py

@ -22,7 +22,7 @@
from .api import (
get_md_header, get_atx_heading, build_toc_line, remove_html_tags,
remove_emphasis,
remove_emphasis, filter_indices_from_line,
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,
@ -34,4 +34,4 @@ from .exceptions import (GithubOverflowCharsLinkLabel, GithubEmptyLinkLabel,
GithubOverflowOrderedListMarker,
StdinIsNotAFileToBeWritten,
TocDoesNotRenderAsCoherentList,
StringCannotContainNewlines)
StringCannotContainNewlines, CannotTreatUnicodeString)

Loading…
Cancel
Save