MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / _split_row

Method _split_row

markdown/extensions/tables.py:76–83  ·  view source on GitHub ↗

split a row of text into list of cells.

(self, row, border)

Source from the content-addressed store, hash-verified

74 c.set('align', a)
75
76 def _split_row(self, row, border):
77 """ split a row of text into list of cells. """
78 if border:
79 if row.startswith('|'):
80 row = row[1:]
81 if row.endswith('|'):
82 row = row[:-1]
83 return row.split('|')
84
85
86class TableExtension(markdown.Extension):

Callers 2

runMethod · 0.95
_build_rowMethod · 0.95

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected