forked from highsource/confluence-to-markdown-converter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (55 loc) · 1.76 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<link href="../favicon.ico" rel="shortcut icon"/>
<title>Wikifier - Convert Confluence XML to wiki markup</title>
<script type="text/javascript" src="js/SaxonCE/Saxonce.nocache.js"></script>
<script type="text/javascript" src="js/C2MD/C2MD.js"></script>
<script type="text/javascript">
// <![CDATA[
function initialize()
{
wikify();
}
function keyup(e)
{
var keyPressed;
if (window.event)
keyPressed = window.event.keyCode; // IE
else
keyPressed = e.which; // Others
var KEY_CODE_PASTE = 86;
var KEY_CODE_ENTER = 13;
if (keyPressed==KEY_CODE_ENTER || keyPressed==KEY_CODE_PASTE) wikify();
}
function wikify()
{
var confluenceStorageFormatString = document.getElementById("confluencexml").value;
var markdownString = C2MD.transformConfluenceStorageFormatStringToMarkdownString(document, confluenceStorageFormatString);
document.getElementById("wikimarkup").value = markdownString;
}
// ]]>
</script>
<script type="text/javascript">
// <![CDATA[
var onSaxonLoad = function() {
C2MD.initialize();
initialize();
};
// ]]>
</script>
</head>
<body>
<p>WORK IN PROGRESS</p>
<p>Based on the original <a href="http://www.amnet.net.au/~ghannington/confluence/wikifier/">Wikifier</a>.</p>
<hr/>
<textarea id="confluencexml" rows="25" cols="120" onkeyup="keyup(event);"><h1>Wikifier</h1>
<p>Paste your Confluence XML under the "Confluence XML" heading.</p>
<p>You can edit the XML, and then press Enter to refresh the wikified view.</p>
</textarea>
<hr/>
<textarea id="wikimarkup" rows="25" cols="120">
</textarea>
</body>
</html>