These are chat archives for wooorm/remark

7th
Aug 2017
Caleb
@tech4him1
Aug 07 2017 20:04
I'm not sure if this is an issue, or just a wrong implementation on our side, but does remark have as a built-in feature -- breaking to a new paragraph by having two spaces at the end of a line?
Caleb
@tech4him1
Aug 07 2017 20:22
@wooorm
Titus
@wooorm
Aug 07 2017 21:07
Yes, through a plugin
Caleb
@tech4him1
Aug 07 2017 21:15
@wooorm Thanks, but I think I'm looking for the exact opposite of that. I'm trying to make it work with two spaces to break to a newline.
Titus
@wooorm
Aug 07 2017 21:16
Could you provide example input/output?
Caleb
@tech4him1
Aug 07 2017 21:16
sure

Input:

Line 1.
Line 2.[space][space]
Line 3.

Output:

<p>Line 1.Line 2.</p>
<p>Line 3.</p>
Titus
@wooorm
Aug 07 2017 21:19
Oh, you want an extra paragraph?!
Why no break?
And do you know of other markdown processors with this feature?
Caleb
@tech4him1
Aug 07 2017 21:20
That support two space to make a new paragraph?
Titus
@wooorm
Aug 07 2017 21:20
Yeah, no breaks, but a new paragraph
Caleb
@tech4him1
Aug 07 2017 21:21
Oh, you're right, I'm sorry, I was mistaken https://github.com/wooorm/remark-breaks is what I was needing.
My fault.
Thanks for your time.
Titus
@wooorm
Aug 07 2017 21:22
Sure, no problem!
Caleb
@tech4him1
Aug 07 2017 21:27
@wooorm sorry, I'm back. https://github.com/wooorm/remark-breaks allows you to add <br />s without needing spaces at the end of the line, but how can I set it up so that you do need spaces at the end of a line to break?
Is that built-in?
Titus
@wooorm
Aug 07 2017 21:37
Oh yeah
That’s built in
Sorry, forgot about that :p