Commit a93e5329 authored by Naum Spaseski's avatar Naum Spaseski Committed by Miguel Angel Reina Ortega
Browse files

Added the MAX_CELL_WIDTH constant

parent 32743800
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -11,6 +11,8 @@ import re
colspanMarker = '~~COLSPAN~~'
colspanMarker = '~~COLSPAN~~'
rowspanMarker = '~~ROWSPAN~~'
rowspanMarker = '~~ROWSPAN~~'


MAX_CELL_WIDTH = 80  # Target maximum width for a column

def markdownToGrid(markdownLines:list[str]) -> list[str]:
def markdownToGrid(markdownLines:list[str]) -> list[str]:
	"""	Convert a markdown table to a grid table. 
	"""	Convert a markdown table to a grid table. 
		Cells containing ~~XX~~ will be merged with the previous cell.
		Cells containing ~~XX~~ will be merged with the previous cell.