Skip to content

0.1.1

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Nov 15:12
· 1 commit to main since this release

GitLab Includes 0.1.1

Fixes the source warnings reported by the Obsidian directory preview:

  • Create elements through Obsidian helpers in the embed's own document.
  • Recognize line breaks in Reading View across popout windows.
  • Shorten command labels while preserving existing command IDs and hotkeys.
  • Keep metadata wrapper returns typed and use the browser timer API.

Validated with 60 unit tests, including a cross-window regression, TypeScript, ESLint with typed unsafe-return checks, manifest validation, build and compiled-artifact checks. Published 0.1.0 assets remain unchanged.

Use GitLab Markdown include directives as native note embeds in Obsidian 1.15.0 or newer.

  • Render standalone ::include{file=...} directives in Live Preview and Reading View, with relative paths, spaces and Unicode filenames.
  • Use native embed styling, theme rules, CSS snippets, folding, scrolling, task checkboxes and open-note controls.
  • Click an embed to select its reference for editing. Dragging across it keeps the directive hidden.
  • Keep references valid when files or folders are renamed or moved, when Obsidian's automatic link updates are enabled.
  • Find includes in native backlinks, global/local graphs and outgoing links through in-memory reference translation. Backlinks retain original directive positions; saved notes remain GitLab Markdown.
  • Insert includes from the command palette or editor menu, and explicitly convert supported native embeds.
  • Type the configurable shorthand (default ::) for a native-style inline picker of Markdown notes. Enter, Tab or clicking inserts GitLab syntax; images are excluded.
  • Keep GitLab include syntax in saved Markdown. The plugin works locally, without network requests or telemetry.

Native rendering and indexing are verified on Obsidian 1.15.0 for Windows. Heading/block include syntax, remote includes and recursively expanded includes are outside this release's scope. Rendering and indexing use guarded internal APIs; a public-renderer fallback has fewer native interactions, and unavailable metadata hooks disable indexing with a notice. Other plugins reading stored parse metadata directly may not see includes.

Install the main.js, manifest.json and styles.css assets into .obsidian/plugins/gitlab-includes/, then enable GitLab Includes.