-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (59 loc) · 1.5 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
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RTL Markdown Editor</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/codemirror.min.css">
<style>
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
#editor-container {
height: 100%;
}
.CodeMirror {
height: 100% !important;
direction: inherit;
text-align: inherit;
font-size: 16px;
}
.CodeMirror-sizer {
margin-right: 10px !important;
}
.CodeMirror-linenumbers {
padding: 0 5px 0 5px;
min-width: 20px;
text-align: right;
white-space: nowrap;
}
.CodeMirror-gutter-wrapper {
width: auto !important;
}
.CodeMirror-gutters {
width: auto !important;
min-width: 10px; /* Adjust as needed */
padding-right: 1px;
}
.CodeMirror-lines {
padding-left: 8px;
padding-right: 8px;
}
.CodeMirror-vscrollbar {
left: 0 !important;
right: auto !important;
}
</style>
</head>
<body>
<div id="editor-container">
<textarea id="editor"></textarea>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.62.0/mode/markdown/markdown.min.js"></script>
<script src="renderer.js"></script>
</body>
</html>