GitbookIO / kramed

A markdown (kramdown compatible) parser and compiler. Built for speed. (Fork of marked)
MIT License
223 stars 47 forks source link

enclosing <p> tag #40

Open nschloe opened 8 years ago

nschloe commented 8 years ago

As stated in the README, the most basic example

var kramed = require('kramed');
console.log(kramed('I am using __markdown__.'))

spits out

<p>I am using <strong>markdown</strong>.</p> 

I'm puzzled why one should insert paragraph tags (<p>) here; I can find no such indication in the input string I am using __markdown__.. In fact, the added <p> tag makes it impossible for me to use kramed without a subsequent line break, so I'd like to cast my vote for removing it.