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
f9f17be0
Commit
f9f17be0
authored
12 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
merge external markdown support, move example to plugin (#329)
parent
3321e8b6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugin/markdown/example.html
+97
-0
97 additions, 0 deletions
plugin/markdown/example.html
plugin/markdown/example.md
+29
-0
29 additions, 0 deletions
plugin/markdown/example.md
with
126 additions
and
0 deletions
index-
markdown.html
→
plugin/
markdown
/example
.html
+
97
−
0
View file @
f9f17be0
...
@@ -4,47 +4,31 @@
...
@@ -4,47 +4,31 @@
<head>
<head>
<meta
charset=
"utf-8"
>
<meta
charset=
"utf-8"
>
<title>
reveal.js -
The HTML Presentation Framework
</title>
<title>
reveal.js -
Markdown Demo
</title>
<meta
name=
"description"
content=
"A framework for easily creating beautiful presentations using HTML"
>
<link
rel=
"stylesheet"
href=
"../../css/reveal.css"
>
<meta
name=
"author"
content=
"Hakim El Hattab"
>
<link
rel=
"stylesheet"
href=
"../../css/theme/default.css"
id=
"theme"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
/>
<meta
name=
"apple-mobile-web-app-status-bar-style"
content=
"black-translucent"
/>
<link
rel=
"stylesheet"
href=
"css/reveal.css"
>
<link
rel=
"stylesheet"
href=
"css/theme/default.css"
id=
"theme"
>
<!-- For syntax highlighting -->
<link
rel=
"stylesheet"
href=
"lib/css/zenburn.css"
>
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document
.
write
(
'
<link rel="stylesheet" href="css/print/
'
+
(
window
.
location
.
search
.
match
(
/print-pdf/gi
)
?
'
pdf
'
:
'
paper
'
)
+
'
.css" type="text/css" media="print">
'
);
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
</head>
<body>
<body>
<div
class=
"reveal"
>
<div
class=
"reveal"
>
<!-- Any section element inside of this container is displayed as a slide -->
<div
class=
"slides"
>
<div
class=
"slides"
>
<!-- Use external markdown resource, and separate slides by three newlines; vertical slides by two newlines -->
<!-- Use external markdown resource, and separate slides by three newlines; vertical slides by two newlines -->
<section
data-markdown=
"
demo
.md"
data-separator=
"^\n\n\n"
data-vertical=
"^\n\n"
></section>
<section
data-markdown=
"
example
.md"
data-separator=
"^\n\n\n"
data-vertical=
"^\n\n"
></section>
<!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
<!-- Slides are separated by three dashes (quick 'n dirty regular expression) -->
<section
data-markdown
data-separator=
"---"
>
<section
data-markdown
data-separator=
"---"
>
<script
type=
"text/template"
>
<script
type=
"text/template"
>
##
Demo
1
Slide
1
Slide
1
---
---
##
Demo
1
Slide
2
Slide
2
---
---
##
Demo
1
Slide
3
Slide
3
</script>
</script>
</section>
</section>
...
@@ -52,14 +36,17 @@
...
@@ -52,14 +36,17 @@
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
<!-- Slides are separated by newline + three dashes + newline, vertical slides identical but two dashes -->
<section
data-markdown
data-separator=
"^\n---\n$"
data-vertical=
"^\n--\n$"
>
<section
data-markdown
data-separator=
"^\n---\n$"
data-vertical=
"^\n--\n$"
>
<script
type=
"text/template"
>
<script
type=
"text/template"
>
##
Demo
2
Slide
1.1
Slide
1.1
--
--
##
Demo
2
Slide
1.2
Slide
1.2
---
---
##
Demo
2
Slide
2
Slide
2
</script>
</script>
</section>
</section>
...
@@ -82,31 +69,25 @@
...
@@ -82,31 +69,25 @@
</div>
</div>
</div>
</div>
<script
src=
"lib/js/head.min.js"
></script>
<script
src=
"
../../
lib/js/head.min.js"
></script>
<script
src=
"js/reveal.js"
></script>
<script
src=
"
../../
js/reveal.js"
></script>
<script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal
.
initialize
({
Reveal
.
initialize
({
controls
:
true
,
controls
:
true
,
progress
:
true
,
progress
:
true
,
history
:
true
,
history
:
true
,
center
:
true
,
center
:
true
,
theme
:
Reveal
.
getQueryHash
().
theme
,
// available themes are in /css/theme
theme
:
Reveal
.
getQueryHash
().
theme
,
transition
:
Reveal
.
getQueryHash
().
transition
||
'
default
'
,
// default/cube/page/concave/zoom/linear/fade/none
transition
:
Reveal
.
getQueryHash
().
transition
||
'
default
'
,
// Optional libraries used to extend on reveal.js
// Optional libraries used to extend on reveal.js
dependencies
:
[
dependencies
:
[
{
src
:
'
lib/js/classList.js
'
,
condition
:
function
()
{
return
!
document
.
body
.
classList
;
}
},
{
src
:
'
../../lib/js/classList.js
'
,
condition
:
function
()
{
return
!
document
.
body
.
classList
;
}
},
{
src
:
'
plugin/markdown/showdown.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
},
{
src
:
'
showdown.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
},
{
src
:
'
plugin/markdown/markdown.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
},
{
src
:
'
markdown.js
'
,
condition
:
function
()
{
return
!!
document
.
querySelector
(
'
[data-markdown]
'
);
}
}
{
src
:
'
plugin/highlight/highlight.js
'
,
async
:
true
,
callback
:
function
()
{
hljs
.
initHighlightingOnLoad
();
}
},
{
src
:
'
plugin/zoom-js/zoom.js
'
,
async
:
true
,
condition
:
function
()
{
return
!!
document
.
body
.
classList
;
}
},
{
src
:
'
plugin/notes/notes.js
'
,
async
:
true
,
condition
:
function
()
{
return
!!
document
.
body
.
classList
;
}
}
// { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
]
});
});
...
...
This diff is collapsed.
Click to expand it.
demo
.md
→
plugin/markdown/example
.md
+
29
−
0
View file @
f9f17be0
#
External m
arkdown
#
M
arkdown
Demo
##
Slide
1.1
##
External
1.1
Content 1.1
Content 1.1
##
Slide
1.2
##
External
1.2
Content 1.2
Content 1.2
##
Slide
2
##
External
2
Content 2.1
Content 2.1
##
Slide
3.1
##
External
3.1
Content 3.1
Content 3.1
##
Slide
3.2
##
External
3.2
Content 3.2
Content 3.2
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