Giter VIP home page Giter VIP logo

juicy-markdown's People

Contributors

alshakero avatar andwah avatar caraya avatar egao1980 avatar mihaiii avatar tomalec avatar warpech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

juicy-markdown's Issues

GitHub CSS does not load with Shadow DOM enabled

Wth Shadow DOM enabled using this method:

    <script src="/sys/webcomponentsjs/webcomponents.js"></script>
    <script>
        window.Polymer = window.Polymer || {};
        window.Polymer.dom = "shadow";
    </script>
    <link rel="import" href="/sys/polymer/polymer.html">

I get the following error:

screen shot 2016-01-10 at 21 12 27

Exception caught during observer callback: TypeError: Cannot read property 'replace' of null

I'm not 100% sure this is an issue with marked so I'll start here

I get the following exception when using Marked in a web component. The result displays so I don't think it's a Marked error. May this be related to why the page is not updating when I make css changes after the first load?

This is how I'm using Juicy Markdown

 <juicy-markdown value="{{doc}}"   ghcss="false"></juicy-markdown>   

This is the exception I get in Chrome 39.

 Exception caught during observer callback: TypeError: Cannot read property 'replace' of null
Please report this to https://github.com/chjj/marked.
    at Lexer.lex (http://localhost:8888/athena-document/bower_components/marked/lib/marked.js:137:5)
    at Function.Lexer.lex (http://localhost:8888/athena-document/bower_components/marked/lib/marked.js:128:16)
    at marked (http://localhost:8888/athena-document/bower_components/marked/lib/marked.js:1201:31)
    at juicy-markdown.Polymer.parseText (http://localhost:8888/athena-document/bower_components/juicy-markdown/juicy-markdown.html:72:53)
    at juicy-markdown.Polymer.valueChanged (http://localhost:8888/athena-document/bower_components/juicy-markdown/juicy-markdown.html:68:10)
    at juicy-markdown.properties.invokeMethod (http://localhost:8888/athena-document/bower_components/polymer/polymer.js:9355:12)
    at juicy-markdown.properties.notifyPropertyChanges (http://localhost:8888/athena-document/bower_components/polymer/polymer.js:9344:20)
    at Object.Observer.report_ (http://localhost:8888/athena-document/bower_components/polymer/polymer.js:4890:24)
    at Object.createObject.check_ (http://localhost:8888/athena-document/bower_components/polymer/polymer.js:5296:12)
    at callback (http://localhost:8888/athena-document/bower_components/polymer/polymer.js:4788:20)polymer.js:4893 Observer.report_polymer.js:5296 createObject.check_polymer.js:4788 callback

GitHub CSS installs locally but is never used

When I do bower install juicy/juicy-markdown, the following package is installed:

github-markdown-css

juicy-markdown never uses it, though.

Instead, it uses a hardcoded URL to GitHub Pages:

    <!-- New way to do template if tags -->
    <template is="dom-if" if="{{ghcss}}" restamp>
        <link rel="stylesheet" type="text/css" href="http://juicy.github.io/github-markdown-css/github-markdown.css">
    </template>

This should be changed for two reasons:

  • GitHub Pages is not a CDN
  • We should not assume using a public CDN

Question: Displaying embeded HTML in markdown

I'm working on a project that pulls data from a third party API. The Markdow contains HTML content that is not rendered with juicy-markdown. For example:

To access the free version of this course, click the blue button that says <em>Access Course Materials.</em> is rendered with HTML markup instead of rendering italics for em

<a href="https://www.udacity.com/course/ud853" target="_blank">Developing Android Apps. Following Android's <a href="http://developer.android.com/distribute/essentials/quality/core.html" target="_blank">Core App Quality Guidelines, we'll identify the production criteria that still needs to be implemented, then tackle each problem until Sunshine is ready to publish on the Google Play Store. In the process, we'll introduce you to a host of tools and concepts, including: material design approaches, image-handling, performance profiling, and more!

Is there a workaround for this?

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.