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

Support fragmentInURL option #206

Closed
MateuszKubuszok opened this issue Oct 12, 2018 · 4 comments
Closed

Support fragmentInURL option #206

MateuszKubuszok opened this issue Oct 12, 2018 · 4 comments

Comments

@MateuszKubuszok
Copy link

Reveal.js supports fragmentInURL: true|false option which:

	// Flags whether to include the current fragment in the URL,
	// so that reloading brings you to the same fragment position
	fragmentInURL: false,

it is quite useful if one configure its gulp that on presentation.adoc it should generate presenation.html which in turn refreshes browser in (npm serve default behavior). This way, one can have real life preview of the presentation.

I found no way of passing such option from asciidoctor in the documentation, thus a feature request.

@a4z
Copy link
Contributor

a4z commented Oct 12, 2018

oh, interesting! since I use to write with life reload enabled, this seems to be exactly the feature that I miss.
this would spare me me workarround with using include files to always have just a hand full of slides active and quickly go to the edited one after reload
need to look this up

@a4z
Copy link
Contributor

a4z commented Oct 13, 2018

implementing this should be simple,
also need to research what pdfSeparateFragments attribute does, maybe that's related and should be added in the same PR.

when - sooner or later - I get feedback from @obilodeau on #204 and this is done, and I find the next time slot, I could have a look at this if on one else add it until than

@MateuszKubuszok
Copy link
Author

@a4z I believe revealjs_history option mostly let you use this live preview workflow, but fragmentInURL should reinforce it, so that you should be able to navigate to exact fragment which would be even more awesome.

@obilodeau
Copy link
Member

PR submitted see #214

obilodeau added a commit that referenced this issue Oct 30, 2018
Added support for revealjs fragmentInURL option (fixes #206)
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

3 participants