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

Markdown Helper #960

Open
sbwrege2z opened this issue Jul 26, 2019 · 2 comments
Open

Markdown Helper #960

sbwrege2z opened this issue Jul 26, 2019 · 2 comments

Comments

@sbwrege2z
Copy link

I am using version 0.6.3 of grunt-assemble.

The markdown helper seems to insert breaks even when it shouldn't.

The following code:

{{#markdown}}
Paragraph 1: The quick brown 
fox  jumps over the lazy dog.

Paragraph 2: The quick brown 
fox  jumps over the lazy dog.
{{/markdown}}

compiles to:

<p>Paragraph 1: The quick brown 
<br>fox  jumps over the lazy dog.
</p>

<p>Paragraph 2: The quick brown 
<br>fox  jumps over the lazy dog.
</p>

... when I believe it should compile to:

<p>Paragraph 1: The quick brown fox jumps over the lazy dog.</p>

<p>Paragraph 2: The quick brown fox jumps over the lazy dog.</p>

I think line breaks should be inserted only when there are two spaces a the end of the line.

@assemblebot
Copy link

@sbwrege2z Thanks for the issue! If you're reporting a bug, please be sure to include:

  • The version of assemble you are using.
  • Your assemblefile.js (This can be in a gist)
  • The commandline output. (Screenshot or gist is fine)
  • What you expected to happen instead.

If your issue is related to one of the following, please open an issue there:

  • grunt-assemble Issues with using assemble in grunt or the grunt-assemble library.
  • handlebars-helpers Issues with using handlebars helpers from the handlebars-helpers library.

@lukebussey
Copy link

Try adding the following to you assemble options:

assemble: {
  options: {
    marked: {
      breaks: true
    }
  }
}

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

3 participants