uliwitness
uliwitness

Reputation: 8843

How to prevent Jekyll-import (WordPress) from replacing double <br> HTML tags with a single <P> tag?

I have a WordPress blog that I'm trying to import into Jekyll using jekyll-import. While it basically works, it insists on replacing two BR tags («br /»«br /») with a «p» tag. This may make sense in general, but as these BR tags are inside a «pre» block, this completely breaks rendering (the «pre» block leaks).

Does anyone know how I prevent the importer from doing this?

Upvotes: 0

Views: 144

Answers (1)

Karsten
Karsten

Reputation: 2433

have a look at: https://github.com/jekyll/jekyll-import/blob/master/lib/jekyll-import/util.rb maybe you want to nop this method for your import and manually clean up the markdown later.

Upvotes: 1

Related Questions