how to parsing markdown to cut off or move some chunks of code from *.md to html with my html template?
I have markdown file like this: carrot_soup.md
Very nice carrot soup
============
I'd like soup like this:
### Ingredients ###
* carrots
* celery
* lentils
### Coocking ###
Boil some water. And eat it with all Ingredients
I need to parse it to something like this:
<div class="head"">
<h1>Very nice carrot soup</h1>
<p>I'd like soup like this:</p>
</div>
<!-- Something else -->
<div class="Ingredients">
<ul>
<li>carrots</li>
<li>celery</li>
<li>lentils</li>
</ul>
</div>
<div class="Coocking">
<p>Boil some water. And eat it with all Ingredients</p>
</div>
I need to move some markdown data from one markdown file to different parts in my html template
I have:
1) html template 2) static build engine 3) file with markdown code
In my html template I have some <div>
parts and
I need to combine markdown data with html template not as is. I need to cut some markdown code and put this code to different html <div>
parts. How to do it?