docs_markdown_node
trestle.core.markdown.docs_markdown_node
¤
A docs markdown node.
Attributes¤
logger = logging.getLogger(__name__)
module-attribute
¤
Classes¤
DocsMarkdownNode
¤
Bases: BaseMarkdownNode
Markdown will be read to the tree.
Source code in trestle/core/markdown/docs_markdown_node.py
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 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
Attributes¤
content: DocsSectionContent = content
instance-attribute
¤
Functions¤
__init__(key, content, starting_line)
¤
Initialize markdown node.
Source code in trestle/core/markdown/docs_markdown_node.py
54 55 56 57 |
|
build_tree_from_markdown(lines, governed_header=None)
classmethod
¤
Construct a tree out of the given markdown.
Source code in trestle/core/markdown/docs_markdown_node.py
59 60 61 62 63 64 65 |
|
DocsSectionContent
¤
Bases: BaseSectionContent
A content of the node.
Source code in trestle/core/markdown/docs_markdown_node.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
Attributes¤
blockquotes = []
instance-attribute
¤
code_lines = []
instance-attribute
¤
governed_document = []
instance-attribute
¤
html_lines = []
instance-attribute
¤
tables = []
instance-attribute
¤
text = []
instance-attribute
¤
Functions¤
__init__()
¤
Initialize section content.
Source code in trestle/core/markdown/docs_markdown_node.py
32 33 34 35 36 37 38 39 40 |
|
union(node)
¤
Unites contents together.
Source code in trestle/core/markdown/docs_markdown_node.py
42 43 44 45 46 47 48 |
|
handler: python