tag:support.markedapp.com,2011-09-11:/discussions/questions/6540-creating-a-templateMarked: Discussion 2016-07-25T14:14:35Ztag:support.markedapp.com,2011-09-11:Comment/345000962014-09-10T20:44:53Z2014-09-10T20:44:53ZCreating a Template<div><p>Your current solution is the best that exists at the moment. I
have implemented no means of templating or handling multiple
formats at this point. I'll consider it for the future, though.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/345000962014-09-12T00:23:51Z2014-09-12T00:23:58ZCreating a Template<div><p>Please add me to your list of those who would like
straightforward templating for printing nice looking PDF's with
letterhead.</p></div>Fester Bestertestertag:support.markedapp.com,2011-09-11:Comment/345000962014-09-15T06:38:21Z2014-09-15T06:38:28ZCreating a Template<div><p>Thank you for the response. What I might do, although it makes
me cringe a little bit, is put the text and save it as a png file
or something like that... then I can add it in as CSS.</p>
<p>Jacob</p></div>Jacob Campbelltag:support.markedapp.com,2011-09-11:Comment/345000962016-07-25T03:07:07Z2016-07-25T03:07:08ZCreating a Template<div><p>I too would appreciate a letterhead template. I'm currently
using a LaTex template for this.</p></div>Neill Cohentag:support.markedapp.com,2011-09-11:Comment/345000962016-07-25T14:14:32Z2016-07-25T14:14:32ZCreating a Template<div><p>Markdown just isn't made for this kind of thing directly. One
option is to create an HTML/CSS combination that styles it the way
you need, then use metadata replacements to replace the
placeholders with metadata from the top of the file. You could use
an include statement to incorporate it easily into new files.</p>
<p>I won't lay out a whole skeleton, but something using spans or
list items with unique classes and styling, e.g. <code><span
class="subject">[%subject]</span></code> could then have a
meta entry at the top of the document:</p>
<pre>
<code>subject: The subject of the letter</code>
</pre>
<p>And it would fill in. A custom stylesheet would then style the
text as indented, centered, etc. The HTML section could be stored
in a re-usable file, and included with:</p>
<pre>
<code><<{letterheadtemplate.html}</code>
</pre>
<p>Hopefully that helps. If anyone puts something like this
together, I'd be happy to include it in the bonus pack on
github.</p></div>Brett