Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Specification Tools
Scripts
Commits
22f67aca
Commit
22f67aca
authored
4 months ago
by
Miguel Angel Reina Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Fix for the italic conversion
parent
a88ef036
No related branches found
No related tags found
1 merge request
!1
Restructuring and cleaning scripts for Mkdocs
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
toMkdocs/gridTableTools.py
+1
-1
1 addition, 1 deletion
toMkdocs/gridTableTools.py
toMkdocs/regexMatches.py
+1
-1
1 addition, 1 deletion
toMkdocs/regexMatches.py
with
2 additions
and
2 deletions
toMkdocs/gridTableTools.py
+
1
−
1
View file @
22f67aca
...
...
@@ -494,7 +494,7 @@ def parseGridTableWithSpans(gridTable:str) -> tuple[GridTableRowList, GridTableR
# Italic replacements
# Regex to detect markdown italic formatting in cell content
if
cell
.
content
is
not
None
:
cell
.
content
=
matchItalic
.
sub
(
r
'
<i>\g<text></i>
'
,
cell
.
content
)
cell
.
content
=
matchItalic
.
sub
(
r
'
\1
<i>\g<text></i>
'
,
cell
.
content
)
# Correct newlines characters
for
headerRow
in
headerRows
:
...
...
This diff is collapsed.
Click to expand it.
toMkdocs/regexMatches.py
+
1
−
1
View file @
22f67aca
...
...
@@ -37,4 +37,4 @@ matchTable = re.compile(r'^\s*\|.*\|\s*$', re.IGNORECASE)
matchTableSeparator
=
re
.
compile
(
r
'
^\s*\|([-: ]+\|)+\s*$
'
,
re
.
IGNORECASE
)
matchBold
=
re
.
compile
(
r
'
(^|\s)(\*\*|__)(?P<text>.+?)\2(?!\w)
'
)
matchItalic
=
re
.
compile
(
r
'
(^|\s)(\*|_)(?P<text>.+?)(?
<
!\
\)\3(\s|$
)
'
)
matchItalic
=
re
.
compile
(
r
'
(^|\s)(\*|_)(?P<text>.+?)
\2
(?!\
w
)
'
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment