mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
GridTable Parse #195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ashleybrookesics on GitHub (Feb 20, 2018).
Im using the markdig processor with all the advanced features turned on, setup here:
pipeline = New MarkdownPipelineBuilder().UseAdvancedExtensions().Build()
_Content.ContentText = Markdig.Markdown.ToHtml(DB.ProcessMarkdown_WasabiCustomTags(cvrow.ContentText), pipeline)
Got an error with the following grid table markup:
+------------+--+--+--+--+--+--+--+| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |+==+==+==+==+==+==+==+==+==+Error Strack trace:
[IndexOutOfRangeException: Index was outside the bounds of the array.]Markdig.Helpers.StringSlice.TrimStart() +112Markdig.Extensions.Tables.GridTableParser.SetRowSpanState(List1 columns, StringSlice line, Boolean& isHeaderRow, Boolean& hasRowSpan) +248Markdig.Extensions.Tables.GridTableParser.HandleNewRow(BlockProcessor processor, GridTableState tableState, Table gridTable) +90Markdig.Parsers.BlockProcessor.TryContinueBlocks() +202Markdig.Parsers.BlockProcessor.ProcessLine(StringSlice newLine) +66Markdig.Parsers.MarkdownParser.ProcessBlocks() +121Markdig.Parsers.MarkdownParser.Parse() +16Markdig.Markdown.ToHtml(String markdown, TextWriter writer, MarkdownPipeline pipeline) +144Markdig.Markdown.ToHtml(String markdown, MarkdownPipeline pipeline) +58I know this looks like its against the rules of the grid table but it still caused a run time error. We got this error while experimenting with grid tables. We've found them to be incredibly strict and difficult to setup with alot of text in each column.
Thanks.