MCPcopy Create free account
hub / github.com/executablebooks/markdown-it-py / test_parseInline

Function test_parseInline

tests/test_api/test_main.py:170–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168
169
170def test_parseInline():
171 md = MarkdownIt()
172 tokens = md.parseInline("abc\n\n> xyz")
173 assert tokens == [
174 Token(
175 type="inline",
176 tag="",
177 nesting=0,
178 attrs={},
179 map=[0, 1],
180 level=0,
181 children=[
182 Token(
183 type="text",
184 tag="",
185 nesting=0,
186 attrs={},
187 map=None,
188 level=0,
189 children=None,
190 content="abc",
191 markup="",
192 info="",
193 meta={},
194 block=False,
195 hidden=False,
196 ),
197 Token(
198 type="softbreak",
199 tag="br",
200 nesting=0,
201 attrs={},
202 map=None,
203 level=0,
204 children=None,
205 content="",
206 markup="",
207 info="",
208 meta={},
209 block=False,
210 hidden=False,
211 ),
212 Token(
213 type="softbreak",
214 tag="br",
215 nesting=0,
216 attrs={},
217 map=None,
218 level=0,
219 children=None,
220 content="",
221 markup="",
222 info="",
223 meta={},
224 block=False,
225 hidden=False,
226 ),
227 Token(

Callers

nothing calls this directly

Calls 3

parseInlineMethod · 0.95
MarkdownItClass · 0.90
TokenClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…