-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtestDoc.html
More file actions
24 lines (23 loc) · 1016 Bytes
/
testDoc.html
File metadata and controls
24 lines (23 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<title>SimiDoc for testDoc</title>
<script src="https://cdn.rawgit.com/showdownjs/showdown/1.8.7/dist/showdown.min.js"></script>
<script>
convert = function() {
var converter = new showdown.Converter();
converter.setOption('simpleLineBreaks', false);
var summaryDiv = document.getElementById('summary')
summaryDiv.innerHTML = ""
summaryDiv.innerHTML += converter.makeHtml( " This is a *summary*. ")
summaryDiv.innerHTML += converter.makeHtml( " Some points: ")
summaryDiv.innerHTML += converter.makeHtml( " + first bullet ")
summaryDiv.innerHTML += converter.makeHtml( " + second bullet ")
summaryDiv.innerHTML += converter.makeHtml( " **bold** text ")
}
</script>
</head>
<body onload="convert();">
<h1>Summary</h1>
<div id="summary">Summary</div>
</body>
</html>