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

custom preprocessing steps: filters? #9

Open
bjdmeest opened this issue May 22, 2018 · 1 comment
Open

custom preprocessing steps: filters? #9

bjdmeest opened this issue May 22, 2018 · 1 comment
Labels

Comments

@bjdmeest
Copy link
Contributor

So, I kind of miss the latex macro's but I'm pretty sure it's easy to include them.

Stuff like registering custom shortcuts, so that I can write a small regex so that

And then I will make X\todo.

gets changed to

And then I will make X*.*{:.todo}.

Would adding a custom filter be appropriate for this? Are there resources available for including custom preprocessing filters to a paper repo?

@rubensworks
Copy link
Owner

I'm wondering if there would be a clean, simple and generic way to define such shortcuts...

But for now, this would indeed be possible with a custom filter.
You can add these filters to this block in your Rules file (order-sensitive).

You can find more information on how to create filters in the nanoc documentation, or in the built-in filters.

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

No branches or pull requests

2 participants