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

Automatic sidenote reference tags with JavaScript #66

Closed
mplewis opened this issue Nov 3, 2015 · 2 comments
Closed

Automatic sidenote reference tags with JavaScript #66

mplewis opened this issue Nov 3, 2015 · 2 comments

Comments

@mplewis
Copy link

mplewis commented Nov 3, 2015

Hello! Thanks for your work on Tufte CSS, @daveliepmann.

I read in #51 that you do not want to add any JS to this project, which is totally understandable. I am OK with a little bit of JavaScript for my personal website, and I wanted to share something that might make life easier for other users of Tufte CSS.

I wrote a short script that simplifies adding sidenotes. Now you simply have to add the <span class="sidenote">...</span> tag, and this script adds the label and input tags for you.

Hopefully this helps other people with the verbose syntax for sidenotes.

@daveliepmann
Copy link
Contributor

👍

@daveliepmann
Copy link
Contributor

Thanks for your contribution. I'm closing this, but it will stick around as a reference for others in the future who search for sidenote-adding JavaScript. Cheers!

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

No branches or pull requests

2 participants