Project

General

Profile

Actions

Bug #754

closed

LaTex parsing on email notifications

Added by scott voth over 13 years ago. Updated about 13 years ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
BuddyPress (misc)
Target version:
Start date:
2011-05-11
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I don't know if this is possible to even control - but when reviewing LaTex support on the Commons, I noticed that when email notifications are sent out, LaTex code is not parsed. So if a member contributes to a group forum, and that contribution has LaTex, it looks good in the forum, but the email notification goes out with the [latex] tags.

Actions #1

Updated by Matt Gold over 13 years ago

  • Status changed from New to Assigned

Great catch, Scott.

Actions #2

Updated by Boone Gorges about 13 years ago

Does anyone have suggestions for how this should be fixed? LaTeX rendering works like this: the TeX markup is sent to wordpress.com's server, which then converts it into an image file and sends it back to us for displaying inline. Our notification emails are plaintext (as opposed to HTML) and thus do not support inline images. So there are a few options:

1) Produce HTML emails. This will take a large amount of development, and still leaves the question of how we handle the issue for users who opt out of HTML emails (because their client will not support them)
2) Remove the [latex] shortcode tags, but leave the markup, figuring that people subscribed to such emails will be able to read the markup at least fairly well (and if not, they can click through to the web version)
3) Remove the shortcodes and the markup altogether, optionally replacing with an inline message (or a message in the footer) that says something like "This message contains LaTeX, which is best viewed in a browser. Click here..."

Or some combination thereof?

Actions #3

Updated by Matt Gold about 13 years ago

I like #3, except that I think it would be better to include the entire message but to have some sort of symbol where the LaTeX images should be. That way, people can still see what was written, and they can check out the math if they want by clicking on a link.

Actions #4

Updated by Boone Gorges about 13 years ago

Ok. Your suggestion sounds exactly like my #3 (not sure I understand your "except"), though I was suggesting a text link instead of a "symbol" -what do you have in mind?

Actions #5

Updated by Matt Gold about 13 years ago

Sorry -- I misread it -- somehow I thought you wanted to replace the entire message with a link to the online version. A text link sounds perfect.

Actions #6

Updated by scott voth about 13 years ago

Sounds great to me also. Thanks!

Actions #7

Updated by Boone Gorges about 13 years ago

  • Target version set to 1.3

OK, thanks.

Actions #8

Updated by Boone Gorges about 13 years ago

  • Status changed from Assigned to Resolved
Actions #9

Updated by Matt Gold about 13 years ago

How did we say we wanted to deal with notifications that should be sent to users when a relevant ticket was resolved? Because we should inform that math group about this.

Actions

Also available in: Atom PDF