Skip to content

Commit

Permalink
Added documentation for use_name_only
Browse files Browse the repository at this point in the history
  • Loading branch information
BeltranLeo committed Sep 28, 2024
1 parent 9a08ace commit bb69db3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ This is a complete list of all of the options that can be passed to `require("ob
-- * "prepend_note_id", e.g. '[[foo-bar|Foo Bar]]'
-- * "prepend_note_path", e.g. '[[foo-bar.md|Foo Bar]]'
-- * "use_path_only", e.g. '[[foo-bar.md]]'
-- * "use_name_only", e.g, '[[foo-bar]]'
-- Or you can set it to a function that takes a table of options and returns a string, like this:
wiki_link_func = function(opts)
return require("obsidian.util").wiki_link_id_prefix(opts)
Expand Down
1 change: 1 addition & 0 deletions doc/obsidian.txt
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ carefully and customize it to your needs:
-- * "prepend_note_id", e.g. '[[foo-bar|Foo Bar]]'
-- * "prepend_note_path", e.g. '[[foo-bar.md|Foo Bar]]'
-- * "use_path_only", e.g. '[[foo-bar.md]]'
-- * "use_name_only", e.g. '[[foo-bar]]'
-- Or you can set it to a function that takes a table of options and returns a string, like this:
wiki_link_func = function(opts)
return require("obsidian.util").wiki_link_id_prefix(opts)
Expand Down

0 comments on commit bb69db3

Please sign in to comment.