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
c5624ace
Commit
c5624ace
authored
Mar 21, 2024
by
赵小蒙
Browse files
line_to_standard_format 逻辑更新
parent
d062bb6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
magic_pdf/dict2md/ocr_mkcontent.py
magic_pdf/dict2md/ocr_mkcontent.py
+2
-1
No files found.
magic_pdf/dict2md/ocr_mkcontent.py
View file @
c5624ace
...
...
@@ -125,7 +125,8 @@ def line_to_standard_format(line):
line_text
+=
f
"$
{
inline_equation
}
$"
inline_equation_num
+=
1
elif
span
[
'type'
]
==
ContentType
.
Text
:
line_text
+=
span
[
'content'
]
text_content
=
ocr_escape_special_markdown_char
(
span
[
'content'
])
# 转义特殊符号
line_text
+=
text_content
content
=
{
'type'
:
'text'
,
'text'
:
line_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