-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarkdown-viewer.php
More file actions
132 lines (125 loc) · 4.1 KB
/
markdown-viewer.php
File metadata and controls
132 lines (125 loc) · 4.1 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo htmlspecialchars($pageTitle ?? 'Documentation'); ?> - Fastway Couriers</title>
<!-- Favicon -->
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/png" sizes="32x32" href="favicon.png">
<link rel="icon" type="image/svg+xml" href="favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="favicon-180x180.png">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
<link rel="stylesheet" href="assets/css/style.css">
<!-- Markdown Styling -->
<style>
.markdown-content {
background: white;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.markdown-content h1 {
color: #0d6efd;
border-bottom: 2px solid #0d6efd;
padding-bottom: 0.5rem;
margin-bottom: 1.5rem;
}
.markdown-content h2 {
color: #0d6efd;
margin-top: 2rem;
margin-bottom: 1rem;
border-bottom: 1px solid #dee2e6;
padding-bottom: 0.5rem;
}
.markdown-content h3 {
color: #495057;
margin-top: 1.5rem;
margin-bottom: 0.75rem;
}
.markdown-content pre {
background: #f8f9fa;
border: 1px solid #dee2e6;
border-radius: 4px;
padding: 1rem;
overflow-x: auto;
}
.markdown-content code {
background: #f8f9fa;
padding: 0.2rem 0.4rem;
border-radius: 3px;
font-size: 0.9em;
color: #d63384;
}
.markdown-content pre code {
background: transparent;
padding: 0;
color: inherit;
}
.markdown-content table {
width: 100%;
margin: 1rem 0;
border-collapse: collapse;
}
.markdown-content table th,
.markdown-content table td {
border: 1px solid #dee2e6;
padding: 0.5rem;
}
.markdown-content table th {
background: #f8f9fa;
font-weight: 600;
}
.markdown-content ul, .markdown-content ol {
margin: 1rem 0;
padding-left: 2rem;
}
.markdown-content li {
margin: 0.5rem 0;
}
.markdown-content blockquote {
border-left: 4px solid #0d6efd;
padding-left: 1rem;
margin: 1rem 0;
color: #6c757d;
}
.markdown-content a {
color: #0d6efd;
text-decoration: none;
}
.markdown-content a:hover {
text-decoration: underline;
}
.breadcrumb {
background: transparent;
padding: 0;
margin-bottom: 1rem;
}
</style>
</head>
<body>
<?php include 'includes/header.php'; ?>
<main class="container my-5">
<!-- Breadcrumb -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item"><a href="documentation.php">Documentation</a></li>
<li class="breadcrumb-item active" aria-current="page"><?php echo htmlspecialchars($pageTitle ?? 'Document'); ?></li>
</ol>
</nav>
<!-- Markdown Content -->
<div class="markdown-content">
<?php echo $htmlContent; ?>
</div>
<!-- Back Button -->
<div class="mt-4">
<a href="documentation.php" class="btn btn-outline-primary">
<i class="bi bi-arrow-left me-2"></i>Back to Documentation
</a>
</div>
</main>
<?php include 'includes/footer.php'; ?>
</body>
</html>