Giter VIP home page Giter VIP logo

mdown's People

Contributors

dikmax avatar enyo avatar kevmoo avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

mdown's Issues

how to enable table transformer

Hi, I use md_proc following the basic usage:
print(markdownToHtml('# Hello world!'));
but It does not work for table ,could you please figure out how to enable the fucntion for table.
thanks

extension for \begin{...}, \end{...} latex math blocks

@dikmax I'm using your math extension now on my website, works great ๐Ÿ‘

I have one other feature request. Many mathematicians also use \begin{...} \end{...} kind of code blocks. For example \begin{matrix}, \begin{align} etc. Those are supported by some markdown flavours, for example the one used at math.stackexchange.com.

Would be great if md_proc could also escape markdown for those blocks (and mark as <span class="math display">).

A workaround that is now possible, is to use $$...$$ around the equation, see:
http://kasperpeulen.github.io/mathedit/#/gist/097f6d551598a3a8487f

But I think people are so used to not having to do that from standard latex, math.stackexchange etc., so an extension would be great.

possibiliy to define an extension ?

This seems like a very nice markdown parser. Is it possible to define some extension ? I have some troubles parsing documentation from dart (dartdoc) with this parser, as dartdoc uses some non-standard markdown. For example the [myArg] notation.

But anyway, seems like excellent work ! ๐Ÿ‘

Use a prefix for css class names

As the title suggest this issue is about using a css prefix in md_proc to avoid any potential bugs that can come from using common names such as display or math.

My first idea for a css class prefix names would md- or md-proc- to avoid any potential collisions.

See issue #13 for more discussion.

Use package:collection for collection comparison

Hi,

I was curious about what you're using package:parsers for and found this project (nice project!). I remarked that you implemented maps and iterable comparison functions, which are available in this (google-maintained) package already: http://pub.dartlang.org/packages/collection.

Also if you're porting Haskell code you might be interested in some of my other projects: persistent efficient immutable lists, maps and sets, propcheck a quickcheck/smallcheck test library which uses a port of testing-feat for generating enumerations, adts for generating Dart classes from algebraic datatype declarations, and pretty a port of wl-pprint.

Note on UTF-8 and smart punctation

Hi Maxim and thanks for implementing this package, it seem very nice.

I started using it now and ran into some issues with "Smart punctuation" and Dart's default encoding (Latin 1). It was a hard to find the issue because you only get a somewhat random error but after some debugging I realized that Latin 1 is the default encoding (for Dart:io HttpClientRequest) and it simply does not have "smart quotes", see comment 4 here: http://stackoverflow.com/a/9282615

What I had to do to get things working was to explicitly set the charset like this on the headers:

res.headers.contentType = new ContentType("text", "html", charset: "utf-8");

Now it works without errors and I can render commonmark with md_proc server side and then send the output directly to a client.

This is not a bug per say in md_proc, but I think this might be common enough that it's worth documenting somewhere. Not sure exactly where, but maybe some small note in the readme on smart punctuation that if you plan to write that output to a HttpClientRequest you need to set the encoding explicitly to utf-8 or some other charset that supports smart quotes.

Cheers, Robert

don't process math blocks

Would it be possible to have an extension that doesn't process math blocks (that could be rendered by mathjax afterwards) ?

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.