Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
399d4f65
Commit
399d4f65
authored
9 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/bfritscher/reveal.js
into dev
parents
852fea41
9645a763
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugin/markdown/markdown.js
+4
-2
4 additions, 2 deletions
plugin/markdown/markdown.js
with
4 additions
and
2 deletions
plugin/markdown/markdown.js
+
4
−
2
View file @
399d4f65
...
...
@@ -42,7 +42,8 @@
// strip leading whitespace so it isn't evaluated as code
var
text
=
(
template
||
section
).
textContent
;
// restore script end tag
text
=
text
.
replace
(
/__SCRIPT_END__/g
,
'
</script>
'
);
var
leadingWs
=
text
.
match
(
/^
\n?(\s
*
)
/
)[
1
].
length
,
leadingTabs
=
text
.
match
(
/^
\n?(\t
*
)
/
)[
1
].
length
;
...
...
@@ -114,7 +115,8 @@
if
(
notesMatch
.
length
===
2
)
{
content
=
notesMatch
[
0
]
+
'
<aside class="notes" data-markdown>
'
+
notesMatch
[
1
].
trim
()
+
'
</aside>
'
;
}
//handle script end tag bug
content
=
content
.
replace
(
/<
\/
script>/g
,
'
__SCRIPT_END__
'
);
return
'
<script type="text/template">
'
+
content
+
'
</script>
'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment