added expr attribute to latex tag so latex code doesn't show up in intellisense if expr attribute is used

small optimization to reduce calling mimetex for duplicate expressions