I don’t see how I could do that. Because I cannot embed ruby code directly in a markdown file. Sound right?
You can use erb code inside your markdown files. If you do that, add .erb
to your filename. So if the file is myfile.html.md
it would be myfile.html.md.erb
.