Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
6dd3d917
Commit
6dd3d917
authored
7 years ago
by
XhmikosR
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
example plugin: add `data-example-id` only if it's been supplied. (#24127)
parent
1d6a6c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
_plugins/example.rb
+2
-2
_plugins/example.rb
with
2 additions
and
2 deletions
+2
-2
_plugins/example.rb
+
2
-
2
View file @
6dd3d917
...
...
@@ -34,7 +34,7 @@ Syntax Error in tag 'example' while parsing the following markup:
#{
markup
}
Valid syntax: example <lang>
Valid syntax: example <lang>
[id=foo]
eos
end
end
...
...
@@ -55,7 +55,7 @@ eos
end
def
example
(
output
)
"<div class=
\"
bd-example
\"
data-example-id=
\"
#{
@options
[
:id
]
}
\"
>
\n
#{
output
}
\n
</div>"
"<div class=
\"
bd-example
\"
"
+
(
@options
[
:id
]
?
"
data-example-id=
\"
#{
@options
[
:id
]
}
\
"
"
:
""
)
+
">
\n
#{
output
}
\n
</div>"
end
def
remove_holderjs
(
code
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment