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

Changed regex, so it does not remove first letter of id #99

Merged
merged 1 commit into from
Sep 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/slim/section.html.slim
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/ OPTIONS PROCESSING
/ strip IDs the same way revealjs does (remove when hakimel/reveal.js#1230 is fixed)
- @id = @id.gsub(/^[a-zA-Z0-9\-\_\:\.]/, '')
- @id = @id.gsub(/[^a-zA-Z0-9\-\_\:\.]/, '')

/ hide slides on %conceal, %notitle and named "!"
- titleless = (title = self.title) == '!'
- hide_title = (titleless || (option? :notitle) || (option? :conceal))

- vertical_slides = find_by(context: :section) {|section| section.level == 2 }

/ extracting block image attributes to find an image to use as a
/ extracting block image attributes to find an image to use as a
/ background_image attribute
- data_background_image, data_background_size, data_background_repeat,
data_background_transition = nil
Expand Down