Skip to content

[FR]: Add settings for slugify anchor links #405

@Mara-Li

Description

@Mara-Li

Issue validation

  • I checked the issue to prevent duplicate

Is your feature related to a problem ?

This is the content of This is Note2.md:

## This is h2

This is the content of Note1.md:

[[This is Note2#This is h2]]

When Sluglify markdown links is set to lower, the uploaded content of Note1.md becomes:

[This is Note2 > This is h2](this-is-note2.md#this-is-h2)

However, this result is incorrect because the file this-is-note2.md does not exist, while the anchor this-is-h2 correctly links to the This is h2 heading.

If Sluglify markdown links is set to disable, the uploaded content of Note1.md becomes:

[This is Note2 > This is h2](This%20is%20Note2.md#This%20is%20h2)

In this case, the link to the This is h2 heading no longer works. To ensure that anchors work correctly, they must be converted to lowercase and have special characters replaced with -.

I noticed that earlier versions of the plugin had a dedicated option called Sluglify anchor in markdown links. Is there any recommended way to handle this situation in the current version?

Image

What solution do you want to see ?

Re-add the settings for slugify anchor link

Describe the alternative you've considered

Regex

OS

IOS, Windows

Anything else?

No response

Plugin version

7.6.4

Obsidian version & debug log

/

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions