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

LuaLaTex module for direct markdown inclusion in LaTeX documents #3

Closed
mmahnic opened this issue Dec 21, 2011 · 2 comments
Closed

LuaLaTex module for direct markdown inclusion in LaTeX documents #3

mmahnic opened this issue Dec 21, 2011 · 2 comments

Comments

@mmahnic
Copy link

mmahnic commented Dec 21, 2011

I created a module with which it is possible to include markdown code directly into LaTeX documents. Currently it is based on peg-multimarkdown. I tried to use lunamark instead, since I'm also interested in ConTeXt output. Unfortunately lpeg.B doesn't exist in LuaTeX since it includes lpeg 0.9.

Is there a way to simulate lpeg.B in pure lua?
If not, how would one modify the parser so that it wouldn't use lpeg.B?

The module is here:

https://github.com/mmahnic/peg-multimarkdown/tree/master/lualatex

Thanks,
Marko

@jgm
Copy link
Owner

jgm commented Dec 21, 2011

+++ Marko Mahnič [Dec 21 11 12:22 ]:

I created a module with which it is possible to include markdown code directly into LaTeX documents. Currently it is based on peg-multimarkdown. I tried to use lunamark instead, since I'm also interested in ConTeXt output. Unfortunately lpeg.B doesn't exist in LuaTeX since it includes lpeg 0.9.

Is there a way to simulate lpeg.B in pure lua?

Probably not.

If not, how would one modify the parser so that it wouldn't use lpeg.B?

B is only used in some of the smartquote parsers. An earlier version of
lunamark (ca. 2009) did without B, so you could look there. It's
uglier, but possible.

Witiko referenced this issue in Witiko/markdown Aug 15, 2016
This change moves the title argument from #3 to #4 and is not backwards
compatible with regards to the exposed interface. You can check for the
change inside your code by testing the value of `\markdownLastModified`;
the date of the change is 2016/08/14.
@hmenke
Copy link

hmenke commented May 25, 2018

This should no longer be an issue.

$ luatex
This is LuaTeX, Version 1.07.0 (TeX Live 2018) 
 restricted system commands enabled.
**\relax

*\directlua{print(lpeg.version())}      
1.0.1

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

3 participants