Putting range: 0, 36 in the frontmatter of a note causes the browser tab to crash in Silverbullet -- I'm running Vivaldi, so it showed a dead bird icon. I think it only dies if you navigate away, then navigate back.
Repro
- Create a new note called "Blowitup".
- Create frontmatter with a couple of normal keys:
---
stuff: things
otherstuff: more things
---
- Add a new key called
range:
---
stuff: things
range: 0, 36
otherstuff: more things
---
- Navigate away from the page, then navigate back.
- The tab should die after a bit. It was also impossible for me to edit the note in the browser.
Background
I wrote a command in SB to convert a note from one format to another. As part of that, I had to read the frontmatter from one using index.extractFrontmatter and then write it into the new page with space.writePage.
I hit this weird snag at one point: I accidentally wrote a page with a frontmatter key of range, something like this: range: 0, 36 Loading a page with that in the frontmatter crashes the tab.
The rest of my space seemed to be working fine. Trying to load that note and edit the frontmatter was impossible in the browser, I had to ssh to my server and zap it out of the frontmatter.
Maybe range (and anything like it, if there are others) should be "reserved words" in frontmatter or something?