MCPcopy
hub / github.com/Python-Markdown/markdown / dequote

Function dequote

markdown/inlinepatterns.py:177–183  ·  view source on GitHub ↗

Remove quotes from around a string.

(string: str)

Source from the content-addressed store, hash-verified

175
176
177def dequote(string: str) -> str:
178 """Remove quotes from around a string."""
179 if ((string.startswith('"') and string.endswith('"')) or
180 (string.startswith("'") and string.endswith("'"))):
181 return string[1:-1]
182 else:
183 return string
184
185
186class EmStrongItem(NamedTuple):

Callers 1

getLinkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…