Skip to content

Bug: graphify export wiki emits Obsidian [[wikilinks]] that break in every non-Obsidian renderer #1444

Closed

Description

@restagner

Bug: graphify export wiki emits Obsidian [[wikilinks]] that break in every non-Obsidian renderer

Summary

graphify export wiki writes index.md and article files using Obsidian-style
[[Title]] wikilinks, but writes the article filenames with spaces replaced
by underscores (and other chars sanitized). Obsidian resolves [[Title]] by note
title internally, so it works there — but in VS Code preview, GitHub, GitLab, or a
plain browser, [[Domain Data Models]] resolves literally to Domain Data Models.md,
which does not exist (the file is Domain_Data_Models.md). Result: nearly every
navigation link in the generated wiki opens an empty page.

Reproduction

  1. graphify <any-corpus> --wiki (or graphify export wiki on an existing graph)
  2. Open graphify-out/wiki/index.md in VS Code preview / GitHub / a browser (not Obsidian)
  3. Click any community or god-node link, e.g. [[Domain Data Models]]
  4. Lands on an empty/non-existent page

Expected

Links resolve in any markdown renderer, Obsidian included.

Actual

  • Link text: [[Domain Data Models]]
  • Actual file: Domain_Data_Models.md
  • These reconcile only inside Obsidian.

In one real run: index + 38 articles contained 206 [[...]] links. 108 were
community/god-node navigation links (all broken outside Obsidian). The other 98
were node-level links such as [[AwsHelper.py]] and [[.read_object_key_content_from_s3()]]
— these point at nodes for which the exporter never writes an article file at all,
so they are dead even inside Obsidian.

Two distinct defects

  1. Link/filename convention mismatch. Emit standard relative markdown links
    [Display](Domain_Data_Models.md) (the exact filename, URL-encoded or <...>-wrapped
    if it contains spaces/parens/&). These work everywhere, Obsidian included.
    Alternatively, gate [[...]] output behind an --obsidian-style flag.
  2. Links to non-existent articles. The exporter links to individual nodes
    ([[AwsHelper.py]], [[.method()]]) but only generates article files for
    communities and god nodes. Either generate those article files, or render
    non-article nodes as plain text instead of dead links.

Environment

  • graphify (PyPI package graphifyy), installed via uv tool
  • Robot Framework / Python test corpus, ~69 files
  • Observed on Linux; renderer-agnostic (any non-Obsidian markdown viewer)

Workaround in use

A post-export normalizer rewrites [[Title]] → [Title](Filename.md) using a
resolver built from each file's H1 title + filename stem (with _↔space variants),
wrapping targets containing spaces/&/parens in <...>. Links with no matching
article file are downgraded to plain text. Idempotent. Happy to contribute it as a PR.

Activity

  1. safishamsi commented on Jun 23, 2026

    @safishamsi
    Member

    Feel free to send a pr :)

  2. safishamsi commented on Jun 27, 2026

    @safishamsi
    Member

    Fixed in 0.8.50 (PR #1465, thanks @restagner for the report). export wiki now emits portable relative [display](slug.md) links (URL-encoded) instead of Obsidian [[wikilinks]], so navigation works in GitHub/GitLab/VS Code preview/plain browsers and Obsidian alike; articleless neighbors render as plain text instead of dangling. pip install -U graphifyy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions