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

Add support for line blocks #209

Closed
Witiko opened this issue Nov 6, 2022 · 4 comments · Fixed by #248
Closed

Add support for line blocks #209

Witiko opened this issue Nov 6, 2022 · 4 comments · Fixed by #248
Assignees
Labels
feature request good first issue lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation syntax extension Related to syntax extensions and dialects of markdown
Milestone

Comments

@Witiko
Copy link
Owner

Witiko commented Nov 6, 2022

jgm#41 implements Pandoc's line blocks. Perhaps we can rebase their implementation on witiko/markdown?

@Witiko Witiko added feature request good first issue lua Related to the Lua interface and implementation plaintex Related to the plain TeX interface and implementation syntax extension Related to syntax extensions and dialects of markdown labels Nov 6, 2022
@Witiko Witiko added this to the 2.20.0 milestone Nov 6, 2022
@alperozoner
Copy link

Adding support for witikio won't help; it should be backported to pre-jgm#41.

@Witiko
Copy link
Owner Author

Witiko commented Nov 6, 2022

@alperozoner: If you are saying that we should merge jgm#41 to jgm/lunamark first, then I have that planned for Wednesday after I have reviewed it. Then, I will rebase the changes from jgm#41 on witiko/markdown.

@Witiko Witiko modified the milestones: 2.20.0, 2.21.0 Dec 14, 2022
@Witiko Witiko modified the milestones: 2.21.0, 2.20.0 Dec 29, 2022
@Witiko
Copy link
Owner Author

Witiko commented Dec 29, 2022

Assigned to @lostenderman as part of grant project MUNI/33/1658/2022.
Tentatively scheduled for milestone 2.20.0 to be delivered by January 31, 2023.

@Witiko
Copy link
Owner Author

Witiko commented Jan 4, 2023

@lostenderman For an overview of what goes into creating a built-in syntax extension, see:

In general, there are 5 steps:

  1. Implement built-in syntax extension in Lua (e.g. M.extensions.fancy_lists).
  2. Add and document an option that enables the syntax extension (e.g. fancyLists).
  3. Add and document renderers that will be used to display new elements (if any) in TeX (e.g. \markdownRendererFancyOlItem).
  4. Unit-test the syntax extension:
    1. Add new renderers (if any) to unit tests, see tests/support/plain-setup.tex and the witiko/markdown/test LaTeX theme.
    2. Add unit tests (e.g. fancy-lists.test and no-fancy-lists.test).
  5. Update CHANGES.md.

Optionally, we also:

  1. Define how the renderers should look in plain TeX, LaTeX, and ConTeXt by default.
  2. Add the new syntax extension to example documents for LaTeX and ConTeXt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request good first issue lua Related to the Lua interface and implementation plaintex Related to the plain TeX 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.

3 participants