1/9/2024 0 Comments Markdown tableAfter the bracket, a parenthesis ( and a sharp #, then the modified heading line up to the final parenthesis ). After those spaces, there is a single asterisk * followed by a single space character and a bracket is the heading line (every character from the heading line between the first white space and end of line excluded). The indentation for the different list levels uses four space characters for each greater indent, starting from 0 space for headings level 1, 4 spaces for headings level 2, up to 24 spaces for headings level 6. If you find any of these behaviors, please open an issue. White space characters (including space characters) right before end of line MAY also cause unexpected behaviors. Some special characters such as sharps #, ampersands & and others MAY cause unexpected behaviors once uploaded on GitHub. You SHOULD NOT use white space characters different from space characters (such as tabulations) in a heading line. The heading value is modified to be correctly interpreted by GitHub as a link-to-paragraph URL: space characters are replaced by dashes -, question marks ? and exclamation marks ! are removed and not replaced. However, you SHOULD NOT use more than one white space character, every character between the first white space and end of line excluded are used in the link title and the link value (excluding modifications). To be interpreted as a heading, a heading line MUST contain a white space (at least one white space character) between the sharp(s) and the heading label. If you want to replace each TOC tag, you SHOULD run the script several times. Every other TOC tag will be ignored, that means it will still be in the output file. If there is more the one TOC tag line in the whole file, only the first one will be replaced by the generated TOC. Even if ] and ] MAY work, they SHOULD NOT be used. The TOC tag MUST be one of these :, ], or ]. The entire TOC tag line will be removed, that means every character between the final bracket ] and the next end of line will be deleted along with the TOC tag. The TOC tag line MUST start with, ], or ], that means there MUST NOT be any white space between the previous end of line and the first bracket [. ignore-begin ignore headings before the TOC tag Output file to write in, default overwrites FileName h, -help show this help message and exit Here is the result of the python toc.py -h command:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |