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

Citations in lists sometimes cause error bad argument #2 to 'match' (string expected, got table) #460

Closed
3 tasks done
Witiko opened this issue Jul 4, 2024 · 0 comments · Fixed by #461
Closed
3 tasks done
Assignees
Labels
bug lua Related to the Lua interface and implementation syntax extension Related to syntax extensions and dialects of markdown
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Jul 4, 2024

Citations in lists sometimes cause error bad argument #2 to 'match' (string expected, got table):

$ docker run --rm -it witiko/markdown

$ markdown-cli --version
markdown-cli.lua (Markdown) 3.6.1-17-gf57d31e7
Copyright (C) 2009-2016 John MacFarlane, Hans Hagen
Copyright (C) 2016-2024 Vít Starý Novotný, Andrej Genčur
License: LPPL 1.3c

$ markdown-cli citations=true <<-'EOF'
- Color export targets [@latexteam2024interfaces,
  Section 37.8]
EOF

...cal/texlive/texmf-local/tex/luatex/markdown/markdown.lua:4618: bad argument #2 to 'match' (string expected, got table)

The full reproducing document originates from Witiko/expltools#3, which is currently blocked by this ticket.

Tasks

  • Add a reproducing test file issue-460.test from commit fc73190 in draft PR #461.
  • Make the reproducing test file pass the CI.
  • Update CHANGES.md.
@Witiko Witiko added bug lua Related to the Lua interface and implementation syntax extension Related to syntax extensions and dialects of markdown labels Jul 4, 2024
@Witiko Witiko added this to the 3.6.2 milestone Jul 4, 2024
@Witiko Witiko changed the title Citations sometimes cause error bad argument #2 to 'match' (string expected, got table) Citations in lists sometimes cause error bad argument #2 to 'match' (string expected, got table) Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug lua Related to the Lua interface and implementation syntax extension Related to syntax extensions and dialects of markdown
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants