focalboard icon indicating copy to clipboard operation
focalboard copied to clipboard

[GH-1509] Add support for Latex rendering in markdown cells

Open cphyc opened this issue 3 years ago • 7 comments

This adds support for displaying inline and displayed Latex equations using Katex in markdown cells, fixing #1509.

The conversion happens before each paragraph is converted from markdown to HTML. At the moment, any parsing error thrown by KaTeX is caught and the chunk ignored. In other words, the following $\thisisinvalid$ will render as-is, including the surrounding $.

Demonstration

Markdown editor

Screenshot from 2021-11-04 11-02-18

Automatic rendering when leaving the editor

image

cphyc avatar Nov 04 '21 10:11 cphyc

Hello @cphyc,

Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

Per the Mattermost Contribution Guide, we need to add you to the list of approved contributors for the Mattermost project.

Please help complete the Mattermost contribution license agreement? Once you have signed the CLA, please comment with /check-cla and confirm that the CLA check is green.

This is a standard procedure for many open source projects.

Please let us know if you have any questions.

We are very happy to have you join our growing community! If you're not yet a member, please consider joining our Contributors community channel to meet other contributors and discuss new opportunities with the core team.

mattermod avatar Nov 04 '21 10:11 mattermod

/check-cla

cphyc avatar Nov 04 '21 10:11 cphyc

@cphyc We are evaluating how is the best way to handled this. sorry for the delay answering, but let me think a bit more about it and we can decide if we merge it or try to incorporate the existing code from mattermost.

jespino avatar Nov 22 '21 14:11 jespino

This PR has been automatically labelled "stale" because it hasn't had recent activity. A core team member will check in on the status of the PR to help with questions. Thank you for your contribution!

/cc @jasonblais @jfrerich @emilyacook

mattermod avatar Dec 09 '21 01:12 mattermod

Sorry, I still have to take a look into this.

jespino avatar Dec 13 '21 12:12 jespino

Any news on this front?

cphyc avatar Feb 18 '22 13:02 cphyc

Hi, this has been almost a year. Is there any hope of getting this merged or should I close the PR?

cphyc avatar Oct 26 '22 08:10 cphyc