Uncodin/bypass

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

Opened this issue · 0 comments

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