-
Notifications
You must be signed in to change notification settings - Fork 3
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
Pipe table parsing deviation #6
Comments
sivukhin
added a commit
that referenced
this issue
Jun 26, 2024
Hi @xxxserxxx! Thanks for the great sample to reproduce the bug! The issue were in the pipe separators detection logic. I already fixed it in the PR #7 and published Now, |
Beautiful. Thanks for the quick response! Oh, and confirmed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
godjot's output for pipe tables does not match the reference djot. The issue presents when the table contains multiple headers (which is specifically allowed by the spec).
Here's a small sample to produce the issue:
Then to produce the test output:
and to show the difference, run
diff godjot.html djot.html
:The difference is significant, by which I mean it's not simply formatting; the parser produces a completely different AST. Or, maybe the HTML renderer is processing the AST incorrectly -- I haven't yet written a sample program to detect which is happening. But I suspect the parser.
I'm running godjot installed with
go install github.com/sivukhin/godjot@latest
, which appears to be v1.0.3:And compiled with
go1.22.4 linux/amd64
The text was updated successfully, but these errors were encountered: