Error if name contains $ #18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If the name of variables and parameters contains
$, an error will be thrown.For example:
$Slice.Are you sure? This is being used to build the prosemirror docs, which have a number of variables with
$in their name.Yeah I'm sure about this. It only appears when I use top level API starts with
$in markdown template which means I need to declare the Item with@$Slice.I think it's related to here:
https://github.com/marijnh/builddocs/blob/master/src/builddocs.js#L22
Seems the regex here only recoganize item names starts with
\w, which means$will out of this scope.When I replace the
\wwith(\w|\$), seems everything works fine.