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

Empty lines are stripped from comment-blocks too early in the process #74

Open
erikhagreis opened this issue May 27, 2016 · 0 comments
Open

Comments

@erikhagreis
Copy link

For our project we are implementing a custom parser which parses multiline fields with markdown formatting.

Empty lines within markdown denote separation between paragraphs and are therefore important to retain.

I believe this is the part of the code that strips empty lines in the _dss.parse function:

// Remove extra whitespace
block = block.split('\n').filter(function(line) {
    return (_dss.trim(_dss.normalize(line)));
}).join('\n');

For other usecases like markup they could be stripped but for flexibility I think it should be left to the custom parsers instead of the initial 'prep' cycle in DSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants