Skip to content

Doesn't work with obsidian-lineage #281

@crashmoney

Description

@crashmoney

Describe the bug
Nothing appears when I enter a citekey in an Obsidian Lineage view (ycnmhd/obsidian-lineage#71).

To Reproduce
Steps to reproduce the behavior:

  1. Open a new Lineage document
  2. Enter a citekey using the Citation plugin
  3. Nothing appears; See error

Console output

Citation plugin: non-fatal error loading BibLaTeX entry: TeXError: Unhandled command: dots{"kind":"RegularCommand","source":"\\dots","command":"dots","arguments":{"optional":[],"required":[]}}
@misc{author_Source_2011,
  title = {Source in {{Source}}: {{Author}}},
  shorttitle = {Source},
  author = {Last, First},
  year = {2011},
  month = may,
  journal = {Blog},
  urldate = {2025-03-04},
  abstract = {Abstract {\dots}},
  langid = {english},
  file = {/Users/crashmoney/Zotero/storage/ID/source-in-source.html}
}
    at Parser.clean_command (index.js:935:27)
    at Parser.clean (index.js:460:29)
    at index.js:370:51
    at Array.map (<anonymous>)
    at Parser.condense (index.js:370:33)
    at Parser.clean_block (index.js:623:14)
    at Parser.clean (index.js:456:29)
    at index.js:370:51
    at Array.map (<anonymous>)
    at Parser.condense (index.js:370:33)
errorHandler @ types.ts:91
TypeError: Cannot read properties of null (reading 'replaceRange')
    at CitationPlugin.eval (plugin:obsidian-citation-plugin:85880:29)
    at step (plugin:obsidian-citation-plugin:92:23)
    at Object.eval [as next] (plugin:obsidian-citation-plugin:73:53)
    at eval (plugin:obsidian-citation-plugin:66:71)
    at new Promise (<anonymous>)
    at __awaiter (plugin:obsidian-citation-plugin:62:12)
    at CitationPlugin.insertMarkdownCitation (plugin:obsidian-citation-plugin:85873:16)
    at InsertCitationModal.onChooseItem (plugin:obsidian-citation-plugin:14843:14)
    at t.onChooseSuggestion (app.js:1:1796970)
    at t.selectSuggestion (app.js:1:1796440)

Expected behavior
The citekey should appear as normal.

Platform

  • OS: MacOS Sequoia 15.5
  • Obsidian version v1.8.10
  • Plugin version v0.4.5

Additional context
As mentioned in ycnmhd/obsidian-lineage#71, it appears to be an issue with how Citation handles markdown views.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions