This file is indexed.

/usr/share/doc/python-markdown-doc/docs/extensions/toc.txt is in python-markdown-doc 2.5.1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
title:      Table of Contents Extension
prev_title: SmartyPants Extension
prev_url:   smarty.html
next_title: WikiLinks Extension
next_url:   wikilinks.html

Table of Contents
=================

Summary
-------

The Table of Contents extension generates a Table of Contents from a Markdown
document and adds it into the resulting HTML document.

This extension is included in the standard Markdown library.

Syntax
------

Place a marker in the document where you would like the Table of Contents to
appear. Then, a nested list of all the headers in the document will replace the
marker. The marker defaults to `[TOC]` so the following document:

    [TOC]

    # Header 1

    ## Header 2

would generate the following output:

    <div class="toc">
      <ul>
        <li><a href="#header-1">Header 1</a></li>
          <ul>
            <li><a href="#header-2">Header 2</a></li>
          </ul>
      </ul>
    </div>
    <h1 id="header-1">Header 1</h1>
    <h1 id="header-2">Header 2</h1>

Usage
-----

See [Extensions](index.html) for general extension usage, specify `markdown.extensions.toc`
as the name of the extension.

See the [Library Reference](../reference.html#extensions) for information about
configuring extensions.

The following options are provided to configure the output:

* **`marker`**:
    Text to find and replace with the Table of Contents. Defaults
    to `[TOC]`.

    If a `marker` is not found in the document, then the Table of Contents is
    available as an attribute of the Markdown class. This allows one to insert
    the Table of Contents elsewhere in their page template. For example:

        >>> text = '''
        # Header 1
        
        ## Header 2
        '''
        >>> md = markdown.Markdown(extensions=['markdown.extensions.toc'])
        >>> html = md.convert(text)
        >>> render_some_template(context={'body': html, 'toc': md.toc})

* **`slugify`**:
    Callable to generate anchors based on header text. Defaults to a built in
    `slugify` method. The callable must accept one argument which contains the
    text content of the header and return a string which will be used as the
    anchor text.

* **`title`**:
    Title to insert in the Table of Contents' `<div>`. Defaults to `None`.

* **`anchorlink`**:
    Setting to `True` will cause the headers link to themselves. Default is
    `False`.

* **`permalink`**:
    Set to `True` to have this extension generate a Sphinx-style permanent links
    near the headers (for use with Sphinx stylesheets).