Skip to content

Allow setting options per directive instance. #70

@twwwt

Description

@twwwt

Currently, one can configure options for the Marked renderer globally only using the markedProvider. It would be great if it would be possible, as an alternative, to provide options per directive instance.

Something like:

<div marked="my_markdown" marked-options="expression">
</div>

where expression is an Angular expression that evaluates to a Marked options object. For instance, it could be a reference to some property defined in some (parent) scope:

<div marked="my_markdown" marked-options="foo">
</div>
$scope.foo = {
   gfm: true
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions