Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trailing tilde on a line causes startLine, startColumn, endLine and endColumn to return 0 #56

Open
eliyap opened this issue Jan 24, 2021 · 0 comments

Comments

@eliyap
Copy link

eliyap commented Jan 24, 2021

I'm not sure if this is a bug with Maaku or with the underlying cmark-gfm library.

I see that Maaku is simply calling into the underlying c function cmark_node_get_start_column(cmark_node *node), which in turn is simply referencing a value:

int cmark_node_get_start_column(cmark_node *node) {
  if (node == NULL) {
    return 0;
  }
  return node->start_column;
}

I am quite sure that the node I am accessing is not NULL, as cmark_node_get_string_content does return a value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant