forked from docs/doc-exports
Drop strong around links
Reviewed-by: gtema <artem.goncharov@gmail.com> Co-authored-by: argoncha Goncharov, Artem <artem.goncharov@t-systems.com> Co-committed-by: argoncha Goncharov, Artem <artem.goncharov@t-systems.com>
This commit is contained in:
parent
e506fa645c
commit
2ef676d3aa
@ -164,6 +164,11 @@ class OTCDocConvertor:
|
|||||||
' / ',
|
' / ',
|
||||||
th.p.string)
|
th.p.string)
|
||||||
|
|
||||||
|
# Drop strong around links "/"
|
||||||
|
for strong in soup.body.find_all('strong'):
|
||||||
|
if strong.a:
|
||||||
|
strong.unwrap()
|
||||||
|
|
||||||
# local anchors
|
# local anchors
|
||||||
for lnk in soup.body.find_all("a"):
|
for lnk in soup.body.find_all("a"):
|
||||||
if (
|
if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user