MCPcopy Create free account
hub / github.com/Python-Markdown/markdown / dequote

Function dequote

markdown/inlinepatterns.py:149–155  ·  view source on GitHub ↗

Remove quotes from around a string.

(string: str)

Source from the content-addressed store, hash-verified

147
148
149def dequote(string: str) -> str:
150 """Remove quotes from around a string."""
151 if ((string.startswith('"') and string.endswith('"')) or
152 (string.startswith("'") and string.endswith("'"))):
153 return string[1:-1]
154 else:
155 return string
156
157
158class EmStrongItem(NamedTuple):

Callers 1

getLinkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected