diff --git a/toMkdocs/gridTableTools.py b/toMkdocs/gridTableTools.py
index ab2585a93e6b2609c78771b2d7d3b953ad0c7a93..6b4161cc25b50129bcd4253bb174d927d3cd9647 100644
--- a/toMkdocs/gridTableTools.py
+++ b/toMkdocs/gridTableTools.py
@@ -529,9 +529,13 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
 			if idx > 0 and cell.colspan == 0:
 				if forwardRowspan[cellIndex] > 0:
 					sum += 1
-				forwardRowspan[cellIndex] -= 1
+					forwardRowspan[cellIndex] -= 1
 			if forwardRowspan[cellIndex] == 0 and cell.rowspan > 1:
 				forwardRowspan[cellIndex] = cell.rowspan -1
+				colspan=1
+				while cell.colspan > colspan:
+					forwardRowspan[cellIndex + colspan] = cell.rowspan - 1
+					colspan += 1
 
 		if not sum == numberOfColumns:
 			raise ValueError('Grid table not converted properly')
@@ -548,9 +552,14 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
 			if idx > 0 and cell.colspan == 0:
 				if forwardRowspan[cellIndex] > 0:
 					sum += 1
-				forwardRowspan[cellIndex] -= 1
+					forwardRowspan[cellIndex] -= 1
 			if forwardRowspan[cellIndex] == 0 and cell.rowspan > 1:
 				forwardRowspan[cellIndex] = cell.rowspan - 1
+				colspan=1
+				while cell.colspan > colspan:
+					forwardRowspan[cellIndex + colspan] = cell.rowspan - 1
+					colspan += 1
+					
 		if not sum == numberOfColumns:
 			raise ValueError('Grid table not converted properly')