tag:support.markedapp.com,2011-09-11:/discussions/questions/123-add-class-and-target-to-outputMarked: Discussion 2016-08-11T03:34:22Ztag:support.markedapp.com,2011-09-11:Comment/156982992012-05-01T19:13:18Z2012-05-01T19:13:19ZAdd class= and target= to output<div><p>Sorry, looks like my syntax example was converted for me :-(</p>
<p>The html for the first (without the angle brackets would be:<br>
a href="http: / / website" target="_blank" Web Site /a</p>
<p>and the second would be:</p>
<p>ul class="something"</p></div>Steve Championtag:support.markedapp.com,2011-09-11:Comment/156982992012-05-01T19:31:55Z2012-05-01T19:31:55ZAdd class= and target= to output<div><p>I'm afraid this isn't a possibility with the default
MultiMarkdown processor. There are, however, some custom processors
that let you define classes on block elements such as UL (I think
Kramdown and Maruku can do it). Custom processors are fairly easy
to set up, but they <em>will</em> change other parsing capabilities
as well. Let me know if you need a hand with that.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/156982992012-05-01T19:43:03Z2012-05-01T19:43:05ZAdd class= and target= to output<div><p>OK - thanks for the fast response. I understand.</p>
<p>Just as an "open thought", it does make writing for a website
that has pre-defined publishing rules and custom CSS tags that need
to be inserted a bit more problematic.</p>
<p>Just wondered if I hacked John Gruber's markdown.pl perl script
to do this, could I add that as a custom markdown processor? I'm
kind of new to this...</p></div>Steve Championtag:support.markedapp.com,2011-09-11:Comment/156982992012-05-01T19:57:31Z2012-05-01T19:57:31ZAdd class= and target= to output<div><p>Yes, you can add any script that takes input on STDIN and
outputs to STDOUT work as a custom processor (which Markdown.pl
does by default).</p>
<p>Neither Markdown nor Marked are designed to output complete
websites, and websites generally shouldn't be designed such that
classes and extra markup are required within the content (with the
exception of image alignment). I know there are special cases, but
adding markup into the output is costly for processing and adds
many variables to deal with.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/156982992016-02-05T20:58:42Z2016-02-05T20:58:43ZAdd class= and target= to output<div><p>I m actually trying to add font-awesome icons to my anchor
elements using dashboard css custom class box and unfortunately
that box, adds icons to li tag and not to a tags.</p></div>Vikulkitag:support.markedapp.com,2011-09-11:Comment/156982992016-02-06T15:47:30Z2016-02-06T15:47:31ZAdd class= and target= to output<div><p>I m actually trying to add font-awesome icons to my anchor
elements using dashboard css custom class box and unfortunately
that box, adds icons to li tag and not to a tags.</p></div>Gamerbaks