File size: 3,230 Bytes
54dce55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b81f038
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Render Markdown</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 20px;
            background-color: #f7f7f7;
            color: #333;
        }

        h1, h2, h3, h4, h5, h6 {
            font-weight: 600;
            color: #222;
        }

        p {
            font-size: 1rem;
            margin-bottom: 1.25em;
        }

        a {
            color: #0366d6;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        pre, code {
            font-family: 'Courier New', monospace;
            background-color: #f4f4f4;
            padding: 4px 6px;
            border-radius: 4px;
            font-size: 1rem;
        }

        blockquote {
            border-left: 4px solid #ccc;
            padding-left: 16px;
            margin: 16px 0;
            color: #666;
            font-style: italic;
        }

        ul, ol {
            margin-left: 20px;
        }

        li {
            margin-bottom: 8px;
        }

        /* Smooth font rendering */
        * {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Remove the box around the content */
        #markdown-content {
            max-width: 800px;
            margin: 0 auto;
        }

        /* GitHub Badge styling */
        #github-badge {
            display: block;
            width: 200px;
            margin: 20px auto;
            text-align: center;
        }

        #github-badge img {
            width: 100%;
        }
    </style>
    <!-- Include marked.js via CDN -->
    <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
</head>
<body>
    <!-- GitHub Badge linking to the repository -->
    <a id="github-badge" href="https://github.com/kesimeg/awesome-turkish-language-models" target="_blank">
        <img src="https://img.shields.io/badge/GitHub-View%20Repository-blue?logo=github" alt="GitHub Badge">
    </a>

    <div class="content">
        <div id="markdown-content"></div>
    </div>

    <script>
        // Function to fetch and render the Markdown file from a remote URL
        async function loadMarkdown() {
            try {
                // Fetch the README.md file from a hosted URL
                const response = await fetch("https://raw.githubusercontent.com/kesimeg/awesome-turkish-language-models/refs/heads/main/README.md");
                const markdownText = await response.text();

                // Convert markdown to HTML using 'marked'
                const htmlContent = marked.parse(markdownText);

                // Inject the HTML into the page
                document.getElementById('markdown-content').innerHTML = htmlContent;
            } catch (error) {
                console.error("Error loading the markdown file:", error);
            }
        }

        // Load the markdown content automatically
        loadMarkdown();
    </script>
</body>
</html>