CERT-Polska/mwdb-core

Rich attributes: searchable elements for simple object members doesn't render

psrok1 opened this issue · 1 comments

psrok1 commented

Environment information

  • MWDB version (from /about): v2.10.0
  • Installation method:
    • mwdb.cert.pl service
    • From PyPi (pip install mwdb-core)
    • From docker-compose
    • Other (please explain)
  • Plugins installed:

Behaviour the bug (what happened?)

Searchable links doesn't render for simple {"key": "value"} objects

image

Expected behaviour

Searchable link should render

Reproduction Steps

Create rich attributes template like shown on the screenshot:

{{#value}}
    {{@aaaa}}
{{/value}}

with value

{
    "aaaa": "sadasdasdad"
}
psrok1 commented

Not a bug. Indentation is treated like "indented code block", so it was rendered like code block instead of a link.

{{#value}}
    {{@aaaa}}
{{/value}}

This variant works correctly:

{{#value}}
{{@aaaa}}
{{/value}}