Spaces:
Runtime error
Runtime error
Commit
•
250025d
1
Parent(s):
7d5b5ca
Using better link handling
Browse files- requirements.txt +2 -1
- src/build_nomic.py +1 -1
requirements.txt
CHANGED
@@ -8,4 +8,5 @@ beautifulsoup4==4.12.2
|
|
8 |
lxml==4.9.3
|
9 |
rich==13.3.4
|
10 |
nomic==3.0.15
|
11 |
-
markdown==3.6
|
|
|
|
8 |
lxml==4.9.3
|
9 |
rich==13.3.4
|
10 |
nomic==3.0.15
|
11 |
+
markdown==3.6
|
12 |
+
mdx-linkify==2.1
|
src/build_nomic.py
CHANGED
@@ -42,7 +42,7 @@ def preprocess_markdown(text):
|
|
42 |
|
43 |
def convert_markdown_to_html(text):
|
44 |
processed_text = preprocess_markdown(text)
|
45 |
-
html = markdown.markdown(processed_text)
|
46 |
return html
|
47 |
|
48 |
|
|
|
42 |
|
43 |
def convert_markdown_to_html(text):
|
44 |
processed_text = preprocess_markdown(text)
|
45 |
+
html = markdown.markdown(processed_text, extensions=['mdx_linkify'])
|
46 |
return html
|
47 |
|
48 |
|