arnau / obsidian-metatable

An Obsidian plugin to display the frontmatter section as a fully expanded table.
MIT License
150 stars 13 forks source link

eating zeros of number in metatable #50

Closed tyePhDCandy closed 1 year ago

tyePhDCandy commented 1 year ago

eating leading zeros of number in metatable

screen shot : the number 32 should have been 000032 image

arnau commented 1 year ago

Hi @tyePhDCandy I'm afraid this is expected. Metatable uses the frontmatter YAML which treats unquoted numeric values as numbers. If you need to represent digits such as 000032 you'll need to use strings which effectively means one of the following:

code: "000032"
aliases: ['000032']