GithubHelp home page GithubHelp logo

haxe-markdown's People

Contributors

aduros avatar antriel avatar aurel300 avatar dpeek avatar gama11 avatar haysclark avatar jasononeil avatar jgranick avatar joshtynjala avatar markknol avatar mrcdk avatar nadako avatar uvtc 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

Watchers

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

haxe-markdown's Issues

Inline HTML doesn't always render correctly

I've run into some unexpected behavior while parsing markdown documents with inline HTML.

Take this markdown for example:

<div>

# Test
test test test

</div>

When parsed, this is what I would expect:

<div>
    <h1>Test</h1>
    <p>test test test</p>
</div>

But that is not what results. This is the output from running the markdown through Markdown.markdownToHTML:

<div>
    <h1>Test</h1>
    <p>test test test</p>
<p></div></p>

As you can see, there are p tags surrounding the closing div. Now, this will render just fine in browsers, but it is not correct HTML. If there are no problems with it, I would suggest making the parse match the expected result I show. I might be able to help, but I would need some guidance on what to change.

Backslashes

The InlineParser.unescape method seems to be called multiple times on the same text, resulting in some escaping issues. In particular, to output two backslashes in a row, you need to type \\\\\\\\.

Problem with URL parsing

See HaxeFoundation/HaxeManual#69

The relevant markdown looks like this:

Haxelib is the library manager that comes with any Haxe distribution. Connected to a central repository, it allows submitting and retrieving libraries and has multiple features beyond that. Available libraries can be found at [http://lib.haxe.org](http://lib.haxe.org).

Any idea why this would fail?

Repository transfer to HaxeFoundation

Hey David,

hope you're doing well. Would you mind transferring this repository over to the HaxeFoundation org on GitHub so we can continue to maintain it?

We would also like to add the HaxeFoundation haxelib account to the list of contributors for both this repository and dox. Since it's probably a bit of a hassle for you to set that up, we can handle this ourselves but would like to ask for your permission because we don't like hacking haxelib content without the author's consent.

Thanks!

Nested lists

Hello!
I was trying out a few things with the markdown parser, and noticed that it doesn't seem to handle nested lists. I don't think nested lists are actually in the markdown "spec," but it seems that implementations often support them. Thanks for your work on this project!

var myMarkdown = `
- item 1
- item 2
    - item 3
    - item 4
- item 5
`;

Results in this markup:

<ul>
<li>item 1</li>
<li>item 2
- item 3
- item 4
</li>
<li>item 5</li>
<li>item 6</li>
</ul>

Trailing space on closing Github code blocks fails to

```haxe
var x = 12;
trace('The sum of $x and 3 is ${x + 3}'); // The sum of 12 and 3 is 15
``` 
String interpolation is ....

This example was from the Haxe manual.

I'm happy to take a look at this at some point not this week if you remind me :)

Anchor link discrepancy

Compare the anchor links between these two pages:

http://haxe.org/manual/cr-resources.html
https://github.com/HaxeFoundation/HaxeManual/blob/master/md/manual/cr-resources.md

The github version links to this:
cr-resources.md#841-embedding-resources

On haxe.org we have this instead:
cr-resources.html#8.4.1-embedding-resources

So it looks like the dots are removed in github's markdown interpretation.

I don't know which one should be considered "correct". Or is this not related to haxe-markdown at all?

GitHub tables

Hi David,

how hard would it be to support GitHub-style tables?

Something like
this !

We are using your markdown parser for the new Haxe website and want to support tables. If this cannot be supported easily I'll check if I can generate HTML directly.

No bullets show unless list preceded by blank line

Moved from HaxeFoundation/dox#124

I believe this markup should show a bullet:

/**
 * Some comment
 * - Some bullet
 */

But instead it renders like this: Some comment - Some bullet.

Adding a blank line in between the comment and the bullet list restores the bullet.

GitHub markup dramatization:

Some comment

  • Some bullet

Inline styles being greedy

From the Haxe documentaion:

NEGATIVE_INFINITY or POSITIVE_INFINITY

Is being converted to:

NEGATIVE<em>INFINITY or POSITIVE</em>INFINITY

Pattern needs to ignore underscore unless preceded by whitespace?

Updates to dart-markdown

Hey David,

there have been quite a few commits to dart-markdown and I was wondering if there is anything we should port back to haxe-markdown. I was looking through the commits but it's hard for me to tell what is specific to dart or the library structure and what are actual improvements to markdown parsing.

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.