Skip to content
Snippets Groups Projects
Commit 8e5d54ac authored by a-rusi's avatar a-rusi
Browse files

Fix documentation needing escapes for tags

parent 0e7aea1a
Branches test
No related tags found
No related merge requests found
module Jekyll
class RawTag < Liquid::Block
def parse(tokens)
@nodelist ||= []
@nodelist.clear
while token = tokens.shift
if token =~ FullToken
if block_delimiter == $1
end_tag
return
end
end
@nodelist << token if not token.empty?
end
end
end
end
Liquid::Template.register_tag('raw', Jekyll::RawTag)
\ No newline at end of file
...@@ -39,7 +39,7 @@ We just created our first multiple choice quiz! ...@@ -39,7 +39,7 @@ We just created our first multiple choice quiz!
To add it to our site, we'll get the `markdown` we got from the **Live Editor** and surround it with the `{% quiz %} {% endquiz %}` tags: To add it to our site, we'll get the `markdown` we got from the **Live Editor** and surround it with the `{% quiz %} {% endquiz %}` tags:
```markdown ```markdown
{{ "{{ quiz " }}}} {% raw %}{% quiz %}{% endraw %}
--- ---
primary_color: steelblue primary_color: steelblue
secondary_color: '#e8e8e8' secondary_color: '#e8e8e8'
...@@ -59,7 +59,7 @@ Which of these are `git` commands? ...@@ -59,7 +59,7 @@ Which of these are `git` commands?
- [ ] git delete - [ ] git delete
- [x] git commit - [x] git commit
- [ ] git pop - [ ] git pop
{{ "{{ endquiz " }}}} {% raw %}{% endquiz %}{% endraw %}
``` ```
This quiz will end up looking something like this: This quiz will end up looking something like this:
...@@ -91,7 +91,7 @@ Which of these are `git` commands? ...@@ -91,7 +91,7 @@ Which of these are `git` commands?
You can add multiple questions to your quiz: just add the `markdown` underneath your previous quiz! You can add multiple questions to your quiz: just add the `markdown` underneath your previous quiz!
```markdown ```markdown
{{ "{{ quiz " }}}} {% raw %}{% quiz %}{% endraw %}
--- ---
primary_color: steelblue primary_color: steelblue
secondary_color: '#e8e8e8' secondary_color: '#e8e8e8'
...@@ -124,7 +124,7 @@ How can you modify your latest commit message? ...@@ -124,7 +124,7 @@ How can you modify your latest commit message?
1. [ ] git modify_commit_message 1. [ ] git modify_commit_message
1. [ ] git restore 1. [ ] git restore
{{ "{{ endquiz " }}}} {% raw %}{% endquiz %}{% endraw %}
``` ```
Click on **Next** to move to the second question! Click on **Next** to move to the second question!
......
...@@ -46,7 +46,7 @@ If you want to attach a file, you'll have to store it first. ...@@ -46,7 +46,7 @@ If you want to attach a file, you'll have to store it first.
You can use of the one *directories* in the `attached_files/` directory. You can use of the one *directories* in the `attached_files/` directory.
Let's add a `.pdf` file to our course: we'll have to store it in the `attached_files/pdf` directory. Let's add a `.pdf` file to our course: we'll have to store it in the `attached_files/pdf` directory.
`{% attach_file {"file_name": "pdf/pro_git.pdf", "title":"Click here to download the Pro Git book"} %}` `{% raw %}{% attach_file {"file_name": "pdf/pro_git.pdf", "title":"Click here to download the Pro Git book"} %}{% endraw %}`
Here's our page after adding all the content we previously mentioned: Here's our page after adding all the content we previously mentioned:
......
...@@ -51,7 +51,7 @@ Distributed means that all users have a copy of the repository instead of a cent ...@@ -51,7 +51,7 @@ Distributed means that all users have a copy of the repository instead of a cent
Now we can attach our slides like we learned: Now we can attach our slides like we learned:
`{% attach_file {"file_name": "slides_markdown/git_slides.pdf", "title":"Git slide deck"} %}` `{% raw %}{% attach_file {"file_name": "slides_markdown/git_slides.pdf", "title":"Git slide deck"} %}{% endraw %}`
## Customizing your slides ## Customizing your slides
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment