tag:support.markedapp.com,2011-09-11:/discussions/questions/6521-are-there-any-tutorialsarticles-on-getting-started-with-preprocessorsMarked: Discussion 2016-08-11T03:17:08Ztag:support.markedapp.com,2011-09-11:Comment/344420052014-09-03T20:37:31Z2014-09-03T20:37:31ZAre there any tutorials/articles on getting started with preprocessors?<div><p>You could actually do this in the document by using [%variable]
holders<br>
and a <!--BREAK--> to start a new page after.</p>
<p>Custom processors (and preprocessors) just take input on STDIN
and<br>
return output on STDOUT. Everything in between is up to the user.
If<br>
your content contains MMD headers, they're passed as is to a<br>
preprocessor and it's up to the script to read and interpret
them.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/344420052014-09-04T10:02:08Z2014-09-04T10:02:08ZAre there any tutorials/articles on getting started with preprocessors?<div><p>Thanks for the reply; that clarifies things somewhat. Since
webkit doesn’t support @page, I’ll need to add some
additional HTML so I can style the first page differently, so it
looks like I’ll have to go the<br>
preprocessor route. I somehow got it in my head that the MMD would
get piped to the script as some kind of variable; I’m
guessing I use Regex to get the meta values (unless there’s a
more effective way).</p>
<p>Thanks!</p></div>Dretag:support.markedapp.com,2011-09-11:Comment/344420052014-09-04T12:18:14Z2014-09-04T12:18:14ZAre there any tutorials/articles on getting started with preprocessors?<div><p>Another option would be to use straight HTML in a separate file,
then<br>
include it in your documents with one of the include syntaxes
(probably<br>
a raw include <<{filename.html}). If you did use a processed
include<br>
(<<[filename.md]) containing HTML, you'd have access to
variables in the head using the [%variable] methods.</p>
<p>-Brett</p></div>Brett