Releases: flowershow/remark-wiki-link
v3.3.1
v3.3.0
Minor Changes
-
- Add support for Obsidian-style permalinks
- Add new
permalinksoption to map file paths to custom URLs (e.g.,{ "blog/post.md": "/custom-url" }) - Permalinks take precedence over
urlResolverwhen defined - Works with both regular wiki links and embeds
- Add new
- Update documentation.
- Add support for Obsidian-style permalinks
v3.2.1
Patch Changes
- Export findMatchingFilePath
v3.2.0
Minor Changes
-
Add support for case-insensitive wiki-link resolution (enabled by default for Obsidian parity).
New Features
- Added
caseInsensitiveoption to the plugin configuration (defaults totrue) - Wiki-links now match files regardless of case by default (e.g.,
[[wiki link]]will matchWiki Link.md) - This behavior matches Obsidian's default wiki-link resolution
Configuration
To disable case-insensitive matching and require exact case matches:
.use(wikiLinkPlugin, { files: ["Wiki Link.md"], caseInsensitive: false, // Require exact case match })
- Added
v3.1.2
Patch Changes
-
Remove webm from audio file type detection
WebM is a container format that can contain both audio and video streams. Since there's no way to determine from the file extension alone whether a
.webmfile contains audio or video content, and WebM is more commonly used for video, it has been removed from the audio file type list.Impact:
![[file.webm]]will now always render as a<video>tag- The
<video>tag can still play audio-only WebM files correctly - For explicit audio-only WebM files, users should use dedicated audio formats like
.mp3,.ogg, or.wav
v3.1.1
Patch Changes
-
Add inline styles for width and height dimensions on images and videos
When dimensions are specified for images or videos using the wiki-link syntax, inline styles are now automatically added alongside the width/height attributes for better rendering control across different contexts.
Examples:
![[image.jpg|200x300]]now generatesstyle="width: 200px; height: 300px"![[video.mp4|640]]now generatesstyle="width: 640px"(height omitted to maintain aspect ratio)
v3.1.0
Minor Changes
-
Add support for video and audio media embeds with proper HTML5 tags
This release adds support for embedding video and audio files using wiki-link syntax:
Video Support:
- Supported formats: mp4, webm, ogv, mov, mkv
- Syntax:
![[video.mp4]]generates<video>tag with controls - Dimension support:
![[video.mp4|640x480]]sets width and height - Width-only support:
![[video.mp4|640]]sets width, allowing browser to maintain aspect ratio
Audio Support:
- Supported formats: mp3, wav, ogg, m4a, flac, 3gp
- Syntax:
![[audio.mp3]]generates<audio>tag with controls - Includes fallback text for browsers that don't support the media tags
Breaking Change:
- When specifying only width for images and videos (e.g.,
![[image.jpg|200]]), the height attribute is no longer automatically set to match the width. This allows browsers to maintain the original aspect ratio of the media.
v3.0.1
Patch Changes
- Wiki-link regex fix
v3.0.0
Major Changes
-
🚨 Breaking: New Wiki-Link Resolution Strategy
This release introduces a more robust wiki-link resolution approach.
🔧 Key Changes:
filesreplacespermalinks- The plugin now accepts a list of
files(file paths) instead ofpermalinks(published URLs) and appliesurlResolveronly after file path is matched
- The plugin now accepts a list of
urlResolverAPI updated- Updated signature:
urlResolver({ filePath, heading, isEmbed }: { filePath: string, heading: string, isEmbed: boolean })
- Updated signature:
Other changes:
- more reliable "shortest path possible" matching
v2.1.0
Minor Changes
- Fixes required to make it work with unified 11