MCPcopy Create free account
hub / github.com/917Dhj/DeepPaperNote / _parse_inline_aliases

Function _parse_inline_aliases

scripts/citation_links.py:138–146  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

136
137
138def _parse_inline_aliases(value: str) -> list[str]:
139 value = value.strip()
140 if not value:
141 return []
142 if value.startswith("[") and value.endswith("]"):
143 value = value[1:-1]
144 return [_strip_wrapping_quotes(part) for part in value.split(",") if _strip_wrapping_quotes(part)]
145 alias = _strip_wrapping_quotes(value)
146 return [alias] if alias else []
147
148
149def _frontmatter_fields(text: str) -> dict[str, Any] | None:

Callers 1

_frontmatter_fieldsFunction · 0.85

Calls 1

_strip_wrapping_quotesFunction · 0.85

Tested by

no test coverage detected