mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-04 05:44:50 +00:00
InvalidCastException in SmartyPantsInlineParser #40
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 @Jither on GitHub (Jun 28, 2016).
No pull request for this one, sorry ---(*) until Github figures out I'm human. 😈 Besides, I'm not quite sure I follow the reasoning in the SmartyPants parser (I know changes were made to fix the table rendering).
However, test case:
Markdig throws an InvalidCastException:
Unable to cast object of type 'System.String' to type 'System.Collections.Generic.List`1[Markdig.Extensions.SmartyPants.SmartyPant]
Seems to be due to the dashes logic writing
String.Empty, overwriting the list created by the quotation marks, inParserState[Index].(*) Written too many m-dashes today, it seems. ;-)
@Jither commented on GitHub (Jul 5, 2016):
I'm finally back from the dead/blocked 😃 - and so are any issues comments I've made. As you know, this was fixed in 0.7.1 - so this can be closed.