Customizing the used JavaScript Libraries

eichberg's Avatar

eichberg

07 Mar, 2013 06:00 PM

Currently, it is already possible to activate the MathJax and Highlight.js JavaScript libraries when needed. But it is unfortunately not possible to add references to other JavaScript libraries that may be required to get a final rendering of the document. E.g., imagine a markdown document that contains a piece of JavaScript to render some vector graphics. In such a case it would be helpful to add links to further JavaScript libraries (and maybe css files).

Basically, it would be helpful to have a mechanism in place that is comparable to adding something like

<script src="Library/Timeline-1.0.0/Timeline.js" type="text/javascript"></script>  
<link href="Library/Timeline-1.0.0/Timeline.css" type="text/css" rel="stylesheet" />

to the header part of the generated HTML document.

  1. Support Staff 1 Posted by Brett on 10 Mar, 2013 02:05 AM

    Brett's Avatar

    Marked should allow script tags right in the document, and you can use XHTML Header metadata to add it to the head of a rendered document. Beyond that, Marked is very dependent on its own JavaScript and CSS, and I don't really want to open up holes that will allow any more conflicts than necessary. It would lead to endless support tickets.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac