tag:support.markedapp.com,2011-09-11:/discussions/questions/10252-prism-js-supportMarked: Discussion 2020-09-25T16:21:31Ztag:support.markedapp.com,2011-09-11:Comment/485887732020-08-30T13:05:36Z2020-08-30T13:05:36ZPrism JS Support<div><p>It's possible, but not simple. Are you using PrismJS in Marked? Can you explain to me why you need to do this, and if you think enough users would be affected to make it worth adding the feature?</p>
<ul>
<li>Brett</li>
</ul></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485887732020-09-02T11:40:43Z2020-09-02T11:40:45ZPrism JS Support<div><p>Hi Brett,</p>
<p>I am using Devonthink (DT) to store all my code snippets/notes using Prism to highlight each languge in markdown however when I try to create a PDF to share, the code gets wonky. If Marked could handle the Prism language- prefix, I could share the code via the many templates in Marked since not everyone prefers code on a black background.</p>
<p>Attached is a screenshot of how the markdown is rendered in DT. DT out of the box comes with Prism JS however only for a few languages but if one needs other languages, they can create their own custom Prism JS file. Based on seeing a big increase in the number of languages now supported by Prism JS, I would say that there are enough users.</p></div>Noeltag:support.markedapp.com,2011-09-11:Comment/485887732020-09-02T19:19:39Z2020-09-02T19:19:39ZPrism JS Support<div><p>Ok, I'll take this under consideration.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485887732020-09-02T19:23:13Z2020-09-02T19:23:13ZPrism JS Support<div><p>You know, one option would be to use a custom preprocessor that just did<br>
a search and replace for the <code>language-</code> prefix and removed it...</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485887732020-09-03T11:35:29Z2020-09-03T11:35:30ZPrism JS Support<div><p>Awesome, I'll have a look.</p>
<p>Thanks</p></div>Noeltag:support.markedapp.com,2011-09-11:Comment/485887732020-09-03T12:40:09Z2020-09-03T12:40:09ZPrism JS Support<div><p>FYI, I've added support for the next update.;</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/485887732020-09-05T09:14:19Z2020-09-05T09:14:20ZPrism JS Support<div><p>Great, thanks again!</p></div>Noel