Files
Tsering Paljor 674e4b12a8 feat: Add markdown support to more Builder elements (#6124)
* WIP

* Remove formula conversion related changes

* Move the file input click guard to formatted text component

* Move format types into their own components

* Use a shared markdown-it instance

* Move the formatter into data explorer

* Move minification logic into BaserowFormulaMinified

* Renderer should own the root element

* Ensure long choice names are truncated

* Ensure line height doesn't grow for paragraphs

* Add tests

* Add changelog

* Add specific tests for choice element
2026-10-09 09:36:32 +04:00

12 lines
482 B
JavaScript

export const BASEROW_FORMULA_MODES = ['raw', 'simple', 'advanced']
// The formats a surface can render the resolved value of a formula in. Plain
// is the implicit default: a formula object without a `format` key is plain,
// and the key is never set to plain.
export const BASEROW_FORMULA_FORMAT_PLAIN = 'plain'
export const BASEROW_FORMULA_FORMAT_MARKDOWN = 'markdown'
export const BASEROW_FORMULA_FORMATS = [
BASEROW_FORMULA_FORMAT_PLAIN,
BASEROW_FORMULA_FORMAT_MARKDOWN,
]