# Very simple macro expanding command line program in Linux and Windows

I am trying to create a workflow in which a single Markdown source document will spit HTML and LaTex friendly Markdown files. Since my content editor uses PC I need him to work on source document but also able to see output in HTML or LaTeX.

I am looking for a simple macro expanding software which will process my macros and create necessary doc both in Linux and Windows.

### Mock example

My Source Markdown File

{@ verse @}
| first line
| second line
{@ verse @}


OUTPUT

HTML-friendly Markdown                   LaTex Friendly Markdown

<div id="" class="verse">                     \begin{verse}
| first line                                  | first line
| second line                                 | second line
</div>                                        \end{verse}


### In short

The macro expanding software should be:

1. Simple
2. Available in Linux and Windows
• Are you willing to install Cygwin? – Mawg Oct 5 '17 at 8:36
• Yes, Cygwin can be installed – Ramaprakasha Oct 7 '17 at 16:28
• I like autohotkey. You could make it to traverse a document and macro-replace text. It runs on just about anything and is relatively simple to operate. – EngrStudent Nov 7 '17 at 19:38
• Do you want to add the gratis tag, or state a budget? – Mawg Dec 8 '17 at 7:52