Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
056aed86
Commit
056aed86
authored
Mar 21, 2024
by
kernel.h@qq.com
Browse files
制作OCR markdown
parent
ef5d9137
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
magic_pdf/dict2md/ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+1
-1
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
056aed86
...
@@ -72,7 +72,7 @@ def ocr_mk_mm_markdown_with_para(pdf_info_dict: dict):
...
@@ -72,7 +72,7 @@ def ocr_mk_mm_markdown_with_para(pdf_info_dict: dict):
para_text
+=
f
" $
{
span
[
'content'
]
}
$ "
para_text
+=
f
" $
{
span
[
'content'
]
}
$ "
elif
span_type
==
ContentType
.
InterlineEquation
:
elif
span_type
==
ContentType
.
InterlineEquation
:
para_text
+=
f
"$$
\n
{
span
[
'content'
]
}
\n
$$ "
para_text
+=
f
"$$
\n
{
span
[
'content'
]
}
\n
$$ "
elif
span_type
==
ContentType
.
Image
:
elif
span_type
in
[
ContentType
.
Image
,
ContentType
.
Table
]
:
para_text
+=
f
"
}
)"
para_text
+=
f
"
}
)"
markdown
.
append
(
para_text
)
markdown
.
append
(
para_text
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment