Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

malifi-marked

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

malifi-marked

Adds marked template support to Malifi

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

malifi-marked

Adds marked (https://github.com/chjj/marked) markdown processing to Malifi. Please note that because the result is an HTML fragment that is missing doctype, html and body, this project may be of limited utility.

Usage: In the metadata template_map_ object for the target MIME type, map file extension(s) to malifi-marked.

For example, to establish mapping of md or markdown files for an entire site, in the site's root directory _default.meta.coffee file:

malifi_marked= require 'malifi-marked'

module.exports=
  template_map_:
    'text/html': [
      ['md', malifi_marked]
      ['markdown', malifi_marked]
    ]

Alternatively, in Javascript, place the following in _default.meta.js:

(function() {
  var malifi_marked;

  malifi_marked = require('malifi-marked');

  module.exports = {
    template_map_: {
      'text/html': [
        ['md', malifi_marked],
        ['markdown', malifi_marked]
      ]
    }
  };

}).call(this);

Of course, the metadata file could define other metadata, and the mapping could be established for any directory or even for individual URLs.

Options

If ext_malifi_marked_options_ is defined in metadata, those options will be passed to marked's marked function.

FAQs

Package last updated on 26 Apr 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc