Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing spaces causes exception when plain-text transforming #70

Open
Baxxis opened this issue Mar 31, 2016 · 0 comments
Open

Trailing spaces causes exception when plain-text transforming #70

Baxxis opened this issue Mar 31, 2016 · 0 comments

Comments

@Baxxis
Copy link

Baxxis commented Mar 31, 2016

When using plain-text transformations, trailing spaces seem to throw an exception. To fix this issue, we can trim the text before issuing the transform.

This throws the exception:

var markdownTransformer = new Markdown();
markdownTransformer.ExtraMode = true; 

markdownTransformer.SummaryLength = -1;
string html = markdownTransformer.Transform(text);

Trimming the text prevents the exception:

string html = markdownTransformer.Transform(text.Trim());
@Baxxis Baxxis changed the title Trailing Spaces causes exception when Plain-Text Transforming Trailing spaces causes exception when plain-text transforming Mar 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant