Uncodin / bypass

Skip the HTML, Bypass takes markdown and renders it directly on Android and iOS.
http://uncodin.github.com/bypass/
Apache License 2.0
1.51k stars 192 forks source link

Creating new parser in renderders.c and markdown.c ? #184

Open jonathan34c opened 9 years ago

jonathan34c commented 9 years ago

Hi, Im trying to add color parser in to the library by adding my own rndr function in the markdown.c , and renderers.c file. However, when I finished my editing and compile, it gives me the compile error as follow.

renderers.c:260:2: error: incompatible integer to pointer conversion initializing 'void (*)(struct buf *, struct buf *,
  void *)' with an expression of type 'int' [-Werror,-Wint-conversion]
    64,

I have tried to change the elements in the const struct mkd_renderer mkd_html = { } bracket. However, it seen like the rndr element is in certain order, so whenever i changed or add an new rnder, it will shows an mismatch.

I wonder if theres anyway i can add an new rnder or able to know the specific order of the rnder ?

thanks