You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
By default, the InputPathToUrl tansform plugin leaves the portion of the link to a file after the # unchanged. It would be useful if IDs in links could have some optional logic and/or functions assigned.
Describe the solution you'd like
Let’s suppose there is a [link to a file section](path/to/file.md#Example%20ID%20Heading). The transformed outcome of that link will be <a href='/file-permalink/#Example%20ID%20Heading'>link to a file section</a>.
It would be great to add an option in the plugin config, allowing us to specify a preferred logic or set a custom function to handle links to IDs. For example, I would like to have that ID slugified, because in the linked page the heading ID is generated by Eleventy’s built-in Id Attribute plugin. Hence, the desired result would be <a href='/file-permalink/#example-id-heading'>link to a file section</a>
Describe alternatives you've considered
The example link is how Obsidian generates heading IDs by default. Potential alternatives would be to manually slugify the anchor IDs in the URLs, but this would break Obsidian’s default. For this reason, it would be optimal to give users the possibility to choose the best logic/function to accommodate their use case.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
By default, the InputPathToUrl tansform plugin leaves the portion of the link to a file after the
#
unchanged. It would be useful if IDs in links could have some optional logic and/or functions assigned.Describe the solution you'd like
Let’s suppose there is a
[link to a file section](path/to/file.md#Example%20ID%20Heading)
. The transformed outcome of that link will be<a href='/file-permalink/#Example%20ID%20Heading'>link to a file section</a>
.It would be great to add an option in the plugin config, allowing us to specify a preferred logic or set a custom function to handle links to IDs. For example, I would like to have that ID slugified, because in the linked page the heading ID is generated by Eleventy’s built-in Id Attribute plugin. Hence, the desired result would be
<a href='/file-permalink/#example-id-heading'>link to a file section</a>
Describe alternatives you've considered
The example link is how Obsidian generates heading IDs by default. Potential alternatives would be to manually slugify the anchor IDs in the URLs, but this would break Obsidian’s default. For this reason, it would be optimal to give users the possibility to choose the best logic/function to accommodate their use case.
Additional context
No response
The text was updated successfully, but these errors were encountered: