Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
8454382b
Commit
8454382b
authored
Dec 04, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v4' of
https://github.com/twbs/derpstrap
into v4
parents
15675094
fc9b7e54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
docs/_plugins/highlight_alt.rb
docs/_plugins/highlight_alt.rb
+3
-3
No files found.
docs/_plugins/highlight_alt.rb
View file @
8454382b
...
@@ -8,7 +8,7 @@ module Jekyll
...
@@ -8,7 +8,7 @@ module Jekyll
# forms: name, name=value, or name="<quoted list>"
# forms: name, name=value, or name="<quoted list>"
#
#
# <quoted list> is a space-separated list of numbers
# <quoted list> is a space-separated list of numbers
SYNTAX
=
/^([a-zA-Z0-9.+#-]+)((\s+\w+(=(
\w
+|"([0-9]+\s)*[0-9]+"))?)*)$/
SYNTAX
=
/^([a-zA-Z0-9.+#-]+)((\s+\w+(=(
(\w|[0-9_-])
+|"([0-9]+\s)*[0-9]+"))?)*)$/
def
initialize
(
tag_name
,
markup
,
tokens
)
def
initialize
(
tag_name
,
markup
,
tokens
)
super
super
...
@@ -17,7 +17,7 @@ module Jekyll
...
@@ -17,7 +17,7 @@ module Jekyll
@options
=
{}
@options
=
{}
if
defined?
(
$2
)
&&
$2
!=
''
if
defined?
(
$2
)
&&
$2
!=
''
# Split along 3 possible forms -- key="<quoted list>", key=value, or key
# Split along 3 possible forms -- key="<quoted list>", key=value, or key
$2
.
scan
(
/(?:\w
="[^"]*"|\w=\w|\w)+
/
)
do
|
opt
|
$2
.
scan
(
/(?:\w
+(?:=(?:(?:\w|[0-9_-])+|"[^"]*")?)?)
/
)
do
|
opt
|
key
,
value
=
opt
.
split
(
'='
)
key
,
value
=
opt
.
split
(
'='
)
# If a quoted list, convert to array
# If a quoted list, convert to array
if
value
&&
value
.
include?
(
"
\"
"
)
if
value
&&
value
.
include?
(
"
\"
"
)
...
@@ -55,7 +55,7 @@ eos
...
@@ -55,7 +55,7 @@ eos
end
end
def
example
(
output
)
def
example
(
output
)
"<div class=
\"
bs-example
\"
>
#{
output
}
</div>"
"<div class=
\"
bs-example
\"
data-example-id=
\"
#{
@options
[
:id
]
}
\"
>
\n
#{
output
}
\n
</div>"
end
end
def
render_rouge
(
code
)
def
render_rouge
(
code
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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