ruby - Jekyll - How can I make avoid a paragraph to be added on a YAML frontmatter markdownify item -


okay... have project i'm using jekyll podcast project. , chose list hosts in shownotes yaml front matter item:

hosts:   - name   - name b   - name c 

using piece of code

<li> <strong>hosts:</strong> <ul>   {% host in page.hosts %} <li>{{ host }} {% endfor %} </ul> 

i receive correct list

<ul> <li> <strong>hosts:</strong>  <ul>    <li>name </li>   <li>name b </li>   <li>name c </li> </ul> </ul> 

however, want markdownify doing

<li> <strong>hosts:</strong> <ul>   {% host in page.hosts %} <li>{{ host | markdownify }} {% endfor %} </ul> 

but jekyll returns:

<ul> <li> <strong>hosts:</strong>  <ul>    <li><p>name </p></li>   <li><p>name b </p></li>   <li><p>name c </p></li> </ul> </ul> 

any way forbid jekyll add <p> tag list item? actually, if want add rich formatting, need put html directly items, want add via markdown'ing front matter text. suggestions?

ps: site hosted @ github pages

you can use remove filter :

{{ host | markdownify | remove: '<p>' | remove: '</p>' }} 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -