Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix logic mistake in toc.html #26

Merged
merged 1 commit into from
Aug 17, 2019
Merged

Fix logic mistake in toc.html #26

merged 1 commit into from
Aug 17, 2019

Conversation

dattranx
Copy link
Contributor

Liquid do not have filter named {{ add }} or I don't know. What do you mean by that ?. I guess that's {{ plus }}. In that case, we prepend a extra space on 1st level of headers so it will stop kramdown from working right. So I was thinking it's a logic error.

Preview

Remove · add: 1

normal_toc
normal_toc_2

* Change &middot add: 1 to plus: 1 **

abnormal_toc
abnormal_toc_2

Liquid do not have filter named {{ add }}
@allejo
Copy link
Owner

allejo commented Aug 17, 2019

Welp, I have no idea why I ever put that add there. You are correct though, it's not needed. Guess I never noticed it because it didn't do anything. Thanks for catching this!

@allejo allejo merged commit 3aaa4fa into allejo:master Aug 17, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants