Giter Club home page Giter Club logo

angular-markdown-it's Introduction

Hi there ๐Ÿ‘‹

angular-markdown-it's People

Contributors

greenkeeper[bot] avatar kfei avatar macedigital avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

angular-markdown-it's Issues

Some markdown-it options don't have any effect

Enabling the linikify & typographer options don't seem to work for me.

.config(['markdownItConverterProvider', function(markdownItConverter) {
      markdownItConverter.config('commonmark', {
        breaks: true,
        linkify: true,
	typographer: true
      });
  }])

Line breaks work using this config, but linkify & typographer do nothing.

Testing with (c) (C) (r) (R) (tm) (TM) (p) (P) +-

&

https://example.org

Any ideas?

iframe tags stripped even when HTML tags are allowed in options

When I have config like the following:

.config(['markdownItConverterProvider', function(markdownItConverter) {
      markdownItConverter.config('default', {
        breaks: true,
        linkify: true,
        typographer: true
      });
  }])

an iframe tag inside the markdown is printed in the output as though it were a text string.

When enabling html: true in the options, like so:

.config(['markdownItConverterProvider', function(markdownItConverter) {
      markdownItConverter.config('default', {
        breaks: true,
        linkify: true,
        typographer: true,
        html: true,
      });
  }])

I'd hoped angular-markdown-it would render the iframe as HTML, but instead what I am seeing is that the iframe is completely removed from the document. Inspecting the document source, the iframe tag is simply gone.

I had a look at the issue queue for markdown-it, but the only issue that I found that seems pertinent is markdown-it/markdown-it#133 , & there it seems to indicate that iframes should work with markdown-it.

Any ideas?

Is there a work around for including plugins?

As far as I can tell, only CommonMark is supported. I know you said support for plugins is planned but not yet implemented so I am curious if there is a work around to use them until then.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.