To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorAuto-linking in your Slides
If you are creating a slide, and you write out: https://github.com,
you probably meant for that to be a link.
So auto-linking is when you get to write: 'https://github.com' but
you end up with <a href="https://github.com">https://github.com</a>
It is setup to be on regardless of which format you're working with:
markdown, html, erb, haml, etc. However, you can turn it off if you
put autolink: false
in your config.yml
- Scenarios
-
- Autolinking a URL in html
- Autolinking a URL in markdown
- Autolinking a URL in erb
- Autolinking a URL in HAML
- Turning off Autolinking
- Autolinking a URL in html
-
- Given
-
a file named "slides.html" with:
<section> <h1>https://github.com/</h1> </section>
- When
-
I run
reveal-ck generate
- Then
- the exit status should be 0
- And
-
the file "slides/slides.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github - And
-
the file "slides/index.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github
- Autolinking a URL in markdown
-
- Given
-
a file named "slides.md" with:
# https://github.com/
- When
-
I run
reveal-ck generate
- Then
- the exit status should be 0
- And
-
the file "slides/slides.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github - And
-
the file "slides/index.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github
- Autolinking a URL in erb
-
- Given
-
a file named "slides.html.erb" with:
<section> <h1>https://github.com/</h1> </section>
- When
-
I run
reveal-ck generate
- Then
- the exit status should be 0
- And
-
the file "slides/slides.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github - And
-
the file "slides/index.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github
- Autolinking a URL in HAML
-
- Given
-
a file named "slides.haml" with:
%section %h1 https://github.com/
- When
-
I run
reveal-ck generate
- Then
- the exit status should be 0
- And
-
the file "slides/slides.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github - And
-
the file "slides/index.html" should have html matching the xpath:
//section/h1/a[@href="https://github.com/"] link to github
- Turning off Autolinking
-
- Given
-
a file named "slides.md" with:
# https://github.com/
- And
-
a file named "config.yml" with:
autolink: false
- When
-
I run
reveal-ck generate
- Then
- the exit status should be 0
- And
- the file "slides/slides.html" should not contain "<a href="
- And
- the file "slides/index.html" should not contain "<a href="
Last published 11 months ago by jedcn.