GithubHelp home page GithubHelp logo

Comments (3)

pjeby avatar pjeby commented on June 1, 2024

See https://github.com/pjeby/tag-wrangler#front-matter -- whitespace in frontmatter is not guaranteed to remain the same after renaming tags. The value of the frontmatter hasn't been changed here, only the spacing. (In YAML, [ [ x ] ] and [[x]] are both the same as [["x"]] in JSON: that is, they are all ways of saying "a list containing a list containing a string".)

Plugins that conform to the YAML spec should not be affected by the change in whitespace.

from tag-wrangler.

jacrify avatar jacrify commented on June 1, 2024

from tag-wrangler.

pjeby avatar pjeby commented on June 1, 2024

Yes, it has to be parsed and rewritten. The whitespace changes are introduced by the yaml parser.

As for not having links impacted, plugins that look for links as nested lists will not care about the extra spaces: the value of the field is not actually being changed, only its formatting. Plugins that use the parsed metadata will not care about the extra spaces, and Obsidian itself has no concept of links in frontmatter.

If the whitespace bothers you for some reason, and you're using plugin(s) that support string links (like dataView does), you can simply use "[[whatever]]" (i.e. put the entire link in quotes).

from tag-wrangler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.