datatemplates icon indicating copy to clipboard operation
datatemplates copied to clipboard

Escape RST

Open janbrohl opened this issue 5 years ago • 3 comments

Add support for escaping RST for security and intuitive behaviour.

  • Either escape per default - then ideally something equivalent to autoescaping for RST. Propably writing a Jinja extension is required.
  • Or escape on demand via filter.

janbrohl avatar Jan 21 '20 06:01 janbrohl

How escaping works depends on context so filtering is the better option.

janbrohl avatar Jan 21 '20 17:01 janbrohl

Adding a filter requires modifying an environment so this requires #42 .

janbrohl avatar Jan 21 '20 17:01 janbrohl

#61 adds the escaping logic as functions. Filters woulld better looking.

janbrohl avatar Jan 21 '20 18:01 janbrohl