MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / _split_row

Method _split_row

markdown/extensions/tables.py:147–153  ·  view source on GitHub ↗

split a row of text into list of cells.

(self, row: str)

Source from the content-addressed store, hash-verified

145 c.set('style', f'text-align: {a};')
146
147 def _split_row(self, row: str) -> list[str]:
148 """ split a row of text into list of cells. """
149 if self.border:
150 if row.startswith('|'):
151 row = row[1:]
152 row = self.RE_END_BORDER.sub('', row)
153 return self._split(row)
154
155 def _split(self, row: str) -> list[str]:
156 """ split a row of text with some code into a list of cells. """

Callers 2

testMethod · 0.95
_build_rowMethod · 0.95

Calls 1

_splitMethod · 0.95

Tested by

no test coverage detected