GithubHelp home page GithubHelp logo

cocoanetics / dtmarkdownparser Goto Github PK

View Code? Open in Web Editor NEW
196.0 196.0 15.0 479 KB

An event-based parser for markdown text

License: BSD 2-Clause "Simplified" License

Objective-C 77.50% Ruby 1.78% HTML 13.39% C 1.58% Swift 5.75%

dtmarkdownparser's People

Contributors

elland avatar odrobnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dtmarkdownparser's Issues

Nested tag in header tags

Phrase emphasis or links are not parsed correctly when nested in headers.
For exemple:

# [Click](http://test.com)

will be rendered in HTML as:

<h1>[Click](<a href="http://test.com">http://test.com</a>)</h1>

instead of:

<h1><a href="http://test.com">Click</a></h1>

or

# **Bold**

as

<h1>**Bold**</h1>

instead of

<h1><strong>Bold</strong></h1>

Parsing of link with underscore nested in "Emphasis" tag

Hello,

The fix for issue #14 works pretty well most of the time but it fails on special case of links with underscores in it. For example:

_Follow me on [Twitter](https://twitter.com/address_with_underscore)._

Should be rendered as:

<p><em>Follow me on <a href="https://twitter.com/address_with_underscore">Twitter</a>.</em></p>

but instead it is rendered as:

<p><em>Follow me on [Twitter](<a href="https://twitter.com/address">https://twitter.com/address</a></em>with<em>underscore).</em></p>

Newline in Code Block

If there is a newline inside a code block, then it causes the block to break into multiple pieces.

pod spec issue with iOS project

Hello,

It seems that there is an issue with the current pod spec which prevent us to use release 0.2.1 with an iOS project.

I have just started a new Xcode iOS project with following Podfile:

platform :ios, '7.0'
pod 'DTMarkdownParser', '~> 0.2.1'

Then I have done a 'pod install' with the following result:

Analyzing dependencies
[!] The platform of the target `Pods` (iOS 7.0) is not compatible with `DTMarkdownParser (0.2.1)` which has a minimum requirement of OS X 10.8.

If I force my local podfile to version 0.2.0 there is no problem.

pod 'DTMarkdownParser', '0.2.0'

URL with Parentheses

URL with parentheses aren't parsed correctly.

For example:

![img](http://test(01).jpg)

Link nested in "Emphasis tag" issue

Hello,
I am testing your parser and so far everything is working well but I encountered this strange behavior when nesting a link inside an "emphasis tag":
sans titre

The following markdown:

_You can follow me on [Twitter](http://twitter.com/me)._

should be rendered as:

<p><em>You can follow me on <a href="http://twitter.com/me">Twitter</a>.</em></p>

but instead it is rendered as:

<p><em>You can follow me on [Twitter](<a href="http://twitter.com/me">http://twitter.com/me</a>).</em></p>

Nested IMG in A

The following is not parsed correctly:

[![Build Status](https://travis-ci.org/Cocoanetics/DTMarkdownParser.png?branch=develop)](https://travis-ci.org/Cocoanetics/DTMarkdownParser)

... because at the moment this kind of nesting is not parsed correctly.

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.