mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Add Markdown cell format
Summary: Text columns can now display their values as Markdown-formatted text by changing their cell format to "Markdown". A minimal subset of the Markdown specification is currently supported. Test Plan: Browser tests. Reviewers: Spoffy, dsagal Reviewed By: Spoffy, dsagal Subscribers: dsagal, Spoffy Differential Revision: https://phab.getgrist.com/D4326
This commit is contained in:
@@ -25,5 +25,5 @@ export function markdown(markdownObs: BindableValue<string>): DomElementMethod {
|
||||
}
|
||||
|
||||
function setMarkdownValue(elem: Element, markdownValue: string): void {
|
||||
elem.innerHTML = sanitizeHTML(marked(markdownValue));
|
||||
elem.innerHTML = sanitizeHTML(marked(markdownValue, {async: false}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user