hackmdio / hackmd-io-issues

Reporting issues about HackMD Enterprise Edition and HackMD.io
36 stars 8 forks source link

latex rendering issue #355

Closed marwahaha closed 1 year ago

marwahaha commented 1 year ago

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

Mobile

Additional context

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

jackycute commented 1 year ago

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>
marwahaha commented 12 months ago

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>