cocoanetics / dtmarkdownparser Goto Github PK
View Code? Open in Web Editor NEWAn event-based parser for markdown text
License: BSD 2-Clause "Simplified" License
An event-based parser for markdown text
License: BSD 2-Clause "Simplified" License
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>
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>
If there is a newline inside a code block, then it causes the block to break into multiple pieces.
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'
https://github.com/JanX2/google-diff-match-patch-Objective-C/blob/master/README.markdown
<pre><code>#import <DiffMatchPatch/DiffMatchPatch.h>
</code></pre>
instead of
<pre><code>#import <DiffMatchPatch/DiffMatchPatch.h>
</code></pre>
URL with parentheses aren't parsed correctly.
For example:
![img](http://test(01).jpg)
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":
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>
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.
Parsing
[some ! text](http://test.com)
is rendered
<p>[some ! text](<a href="http://test.com">http://test.com</a>)</p>
instead of
<p><a href="http://test.com">some ! text</a></p>
Here is an example:
""" multiple quotes """
results in
<pre><code>""" multiple quote</code></pre>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.