Difference between revisions of "Md-toc"

From Free Software Directory
Jump to: navigation, search
(Updated version.)
(New release.)
Line 26: Line 26:
 
respect to each one of them. This was possible by studying the available
 
respect to each one of them. This was possible by studying the available
 
documentations and by reverse engineering the source codes.
 
documentations and by reverse engineering the source codes.
|Homepage URL=https://github.com/frnmst/md-toc
+
|Homepage URL=https://blog.franco.net.eu.org/software/#md-toc
 
|Is High Priority Project=No
 
|Is High Priority Project=No
|VCS checkout command=git clone https://github.com/frnmst/md-toc
+
|VCS checkout command=git clone https://software.franco.net.eu.org/frnmst/md-toc.git
 
|Computer languages=Python
 
|Computer languages=Python
|Documentation note=Documentation at: http://frnmst.github.io/md-toc
+
|Documentation note=Documentation at: https://docs.franco.net.eu.org/md-toc/
 
|Decommissioned or Obsolete=No
 
|Decommissioned or Obsolete=No
 
|Donate=https://www.buymeacoffee.com/frnmst
 
|Donate=https://www.buymeacoffee.com/frnmst
 
|Keywords=markdown, md, table-of-contents, toc
 
|Keywords=markdown, md, table-of-contents, toc
|Version identifier=7.1.0
+
|Version identifier=7.2.0
|Version date=2021/01/20
+
|Version date=2021/04/10
 
|Version status=beta
 
|Version status=beta
|Version download=https://frnmst.gitlab.io/software/md-toc-7.1.0.tar.gz
+
|Version download=https://blog.franco.net.eu.org/software/md-toc-7.2.0.tar.gz
|Version comment=Added constant ordered list option. Fixed atx header algorithm.
+
|Version comment=Added HTML tags and emphasis filtering for certain parsers. Improved documentation.
 
|Last review by=Frnmst
 
|Last review by=Frnmst
|Last review date=2021/01/20
+
|Last review date=2021/04/10
 
|Submitted date=2018/01/27
 
|Submitted date=2018/01/27
 
|User level=intermediate
 
|User level=intermediate
 
|Component programs=Python 3
 
|Component programs=Python 3
 
|Accepts cryptocurrency donations=No
 
|Accepts cryptocurrency donations=No
|OpenPGP signature=https://frnmst.gitlab.io/software/md-toc-7.1.0.tar.gz.sig
+
|OpenPGP signature=https://blog.franco.net.eu.org/software/md-toc-7.2.0.tar.gz.sig
|OpenPGP public key=https://frnmst.gitlab.io/pubkeys/pgp_pubkey_2020.txt
+
|OpenPGP public key=https://blog.franco.net.eu.org/pubkeys/pgp_pubkey_2020.txt
 
|Test entry=No
 
|Test entry=No
 
}}
 
}}
 
{{Project license
 
{{Project license
 
|License=GPLv3orlater
 
|License=GPLv3orlater
|License copyright=Copyright (C) 2017-2020 frnmst (Franco Masotti) <franco.masotti@live.com>
+
|License copyright=Copyright (C) 2017-2021 frnmst (Franco Masotti) <franco.masotti@live.com>
  
 
md-toc is free software: you can redistribute it and/or modify
 
md-toc is free software: you can redistribute it and/or modify
Line 111: Line 111:
 
|Resource audience=Python (Ref)
 
|Resource audience=Python (Ref)
 
|Resource URL=https://pypi.org/project/md-toc
 
|Resource URL=https://pypi.org/project/md-toc
}}
 
{{Resource
 
|Resource audience=Everyone
 
|Resource kind=General
 
|Resource URL=https://gitter.im/md-toc/community
 
 
}}
 
}}
 
{{Featured}}
 
{{Featured}}

Revision as of 15:53, 10 April 2021


[edit]

md-toc

https://blog.franco.net.eu.org/software/#md-toc
Automatically generate and add an accurate table of contents to markdown files.

Description

The table of contents (a.k.a: TOC) generated by this program is designed to work with several markdown parsers such as the ones used by GitHub and GitLab.

Rules for generating the TOC are determined by the selected markdown parser. md-toc aimes infact to be as conformant as possible in respect to each one of them. This was possible by studying the available documentations and by reverse engineering the source codes.

GitHub and GitLab have introduced their version of the markdown TOC after md-toc and similar tools were created:

  • in March 2021 GitHub added an interactive TOC button at the top-left of readme files. This system works for markdown and others
  • GitLab added an extension called Table of contents to its Gitlab Flavored Mardown

Features

  • works offline
  • edits file in place using a TOC marker or output to standard output
  • maximum heading level selection (1 to 6)
  • list indentation based on heading, which can optionally be disabled
  • outputs an ordered or unordered TOC list
  • creates anchor links to markdown headings by default or a plain list as alternative
  • checks if heading level is coherent: this avoid creating an erroneous TOC. This feature can be disabled if needed
  • skip any number lines before generating the TOC
  • can read content from standard input
  • handles multiple files at once
  • selection of newline string
  • check if there is difference between existing TOC in file and newly generated one
  • selection of list marker
  • supports GitHub, GitLab, Commonmark, Redcarpet and others
  • pre-commit md-toc hook

And more! See the feature comparison table

Documentation

Documentation at: https://docs.franco.net.eu.org/md-toc/

Related Projects





Licensing

License

Verified by

Verified on

Notes

Verified by

agyaanapan

Verified on

13 June 2021

Notes

See also https://docs.franco.net.eu.org/md-toc/copyright_license.html for a list of all the licenses used.




Leaders and contributors

Contact(s)Role


Resources and communication

AudienceResource typeURI
VideoSupporthttps://redirect.invidious.io/watch?v=6QaW4qv7y1o
Users, DevelopersBug Trackinghttps://framagit.org/frnmst/md-toc/-/issues
Users, DevelopersChangeloghttps://blog.franco.net.eu.org/software/CHANGELOG-md-toc.html
Users, DevelopersBug Trackinghttps://software.franco.net.eu.org/frnmst/md-toc/issues
Python (Ref)Generalhttps://pypi.org/project/md-toc
Users, DevelopersBug Trackinghttps://codeberg.org/frnmst/md-toc/issues
DocumentationSupporthttps://docs.franco.net.eu.org/md-toc/
VideoSupporthttps://redirect.invidious.io/watch?v=guyVdPNmC0A
Users, DevelopersBug Trackinghttps://github.com/frnmst/md-toc/issues


Software prerequisites

KindDescription
Required to buildpython3-build
Required to buildflake8-docstrings
Required to buildsphinx-copybutton
Required to buildsphinx-book-theme
Weak prerequisitepyfakefs
Required to buildvenv
Required to usehttps://blog.franco.net.eu.org/software/#fpyutils
Required to buildFlake8
Required to useSetuptools
Required to buildSphinx
Required to usePython 3

This entry (in part or in whole) was last reviewed on 15 February 2024.



Version comment

Release 8.2.3 - Code cleanup - Bug fixes - pre-commit configuration cleanup


Entry



























"Python (Ref)" is not in the list (General, Help, Bug Tracking, Support, Developer) of allowed values for the "Resource audience" property.







Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.