Skip to content

Lua: directives are not computed/rendered inside tables #1312

Open
@janssen-io

Description

@janssen-io

Description

When adding a Lua directive ${...} inside a table cell, it is only rendered when editing the table contents.
When the cursor is outside of the table, the literal text/directive itself is shows.

Details

  • SilverBullet: 0.10.4, Edge and v2

Steps to reproduce

  1. Create a new table with a Lua directive inside, for example:
| Col A | 
|-------|
| ${10+2)} |
  1. Move your cursor to the line of the table heading Col A
    The Lua directive is now rendered as the result of the expression: 12

  2. Move your cursor outside of the table (a line above the heading or below the cell with the directive)
    The Lua directive is now rendered as plain text: ${10 + 2}

Notes

Especially with v2 removing Command Links (easily replaced with Lua Widgets), it's important that they are rendered everywhere. :)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions