Skip to content

Commit ac3e93c

Browse files
committed
some minor issue fix
1 parent c912a8f commit ac3e93c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
<body>
1818
<div id="root"></div>
1919
<script type="module" src="/src/main.jsx"></script>
20-
<script src="../path/to/flowbite/dist/flowbite.min.js"></script>
2120
</body>
2221
</html>

src/pages/Doc/single doc/index.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ const DocDetail = () => {
1919
try {
2020
const response = await fetch(`/posts/${slug}.md`);
2121
if (!response.ok) {
22-
throw new Error('Network response was not ok');
22+
throw new Error(`Failed to fetch content: ${response.statusText}`);
2323
}
24-
const text = await response.text();
24+
const text = await response.text(); // Ensure you're reading text
2525
setContent(text);
2626
} catch (error) {
2727
setError(error.message);
@@ -33,6 +33,7 @@ const DocDetail = () => {
3333
fetchContent();
3434
}, [slug]);
3535

36+
3637
const extractHeadings = (markdown) => {
3738
const headings = [];
3839
const regex = /^#{1,6}\s+(.*)$/gm;

0 commit comments

Comments
 (0)