hackmdio / hackmd-io-issues

Reporting issues about HackMD Enterprise Edition and HackMD.io

Repository from Github https://github.comhackmdio/hackmd-io-issuesRepository from Github https://github.comhackmdio/hackmd-io-issues

latex rendering issue

marwahaha opened this issue · comments

Is this a hackmd.io issue?

Read our Official tutorial

It's on https://hackmd.io/c/tutorials/

或是中文版 https://hackmd.io/c/tutorials-tw/

What's the problem

when using

### blah: $\text{QMA}_{c,s}$

the "c,s" is weirdly uppercased, which is not what I want!

Screenshot 2023-11-15 at 9 59 56 PM

This happens in slide mode when you "customize slides" with a theme.

Current behaviour

see an example https://hackmd.io/@kmarw/HyZ84GXN6

Screenshot (optional)

Provide steps to reproduce:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

If possible, create a note with reproducible content and share the link with us.

e.g. note link: https://hackmd.io/features

Expected behaviour

(description of expected behaviour)

Environment

I use HackMD on:

MacOS, Firefox

Desktop

  • OS: [eg. macOS]
  • Browser: [e.g. chrome, safari, firefox, opera]
  • Browser Version: [71]

Mobile

  • Device: [e.g. iPhone XS]
  • OS: [e.g. iOS 12.1]
  • Browser: [e.g. chrome, safari]
  • Version: [e.g. 23]

Additional context

This wasn't a problem during June 2023! Something changed since then.

It's because the white theme of revealjs has default to do uppercase styling for all headings.
You can use style tag to overwrite it or use other theme.

<style>
    .reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
        text-transform: none;
    }
</style>

This wasn't the behavior I wanted, but the following worked for me:

<style>
    .reveal h1 .mathjax, 
    .reveal h2 .mathjax, 
    .reveal h3 .mathjax, 
    .reveal h4 .mathjax, 
    .reveal h5 .mathjax, 
    .reveal h6 .mathjax {
        text-transform: none;
    }
</style>