MathJax rendering errors - Scrivener

Mariano Iannuzzi's Avatar

Mariano Iannuzzi

16 Jan, 2020 11:41 AM


As you will see in the attached screen captures, MathJax rendering when using Scrivener is not working. Marked 2, however, manages to render the very same text properly when I use iA Writer.

Could you please help me resolve this issue? It seems to be related to some LaTex code like \tag{}.



// Please enter a detailed description of the issue // Description of the issue:

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 978 (Direct)

macOS Version: 10.14.6

allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: swiss
defaultProcessor: MultiMarkdown
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
includeKatex: NO
limitTextWidth: YES
minimalJavaScript: NO
permissionGranted: NO
printHeaderFirstPage: NO
printFooterFirstPage: NO
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: NO
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
useCustomPreprocessor: NO
useFirstH1AsPrintTitle: YES

  1. Support Staff 1 Posted by Brett on 16 Jan, 2020 01:40 PM

    Brett's Avatar

    I'm guessing without testing, but try using double backslashes instead
    of single, e.g. `\\tag{}` instead of `\tag{}`.

    Let me know if that helps.


  2. 2 Posted by Mariano Iannuzz... on 16 Jan, 2020 11:49 PM

    Mariano Iannuzzi's Avatar

    Hello Brett,

    Adding a second "\" worked (see the attached screen capture). The problem seems to affect only some LaTex commands. In that example, "\leftrightarrow" rendered just fine. Would you know what the issue might be?


    Mariano Iannuzzi
    Professor | Chevron and Woodside Chair in Corrosion
    Curtin Corrosion Centre
    WASM-MECE - Curtin University
    Adjunct Professor
    Corrosion and Surface Protection
    Norwegian University of Science and Technology

    On 16/1/20, 9:40 pm, "Brett" <[email blocked]> wrote:

  3. Support Staff 3 Posted by Brett on 17 Jan, 2020 02:01 AM

    Brett's Avatar

    It has something to do with escaping, but I’m not sure exactly what’s happening. For Marked to preview a Scrivener document, it has to convert from rich text to plain text, and some escaped characters may end up treated differently than others. I’ll have to do some testing.

    - Brett

  4. 4 Posted by Mariano Iannuzz... on 17 Jan, 2020 03:13 AM

    Mariano Iannuzzi's Avatar


    On 17/1/20, 10:01 am, "Brett" <[email blocked]> wrote:

  5. Support Staff 5 Posted by Brett on 28 Jan, 2020 05:05 PM

    Brett's Avatar

    Please update to the latest version (just released) and let me know if the issue is resolved for you.



  6. 6 Posted by Mariano Iannuzz... on 29 Jan, 2020 12:45 AM

    Mariano Iannuzzi's Avatar

    Thank you, Brett. I confirm it renders properly with the latest version. See the attachment.



    On 29/1/20, 1:05 am, "Brett" <[email blocked]> wrote:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • iA_Writer_-_Okay.png 105 KB
  • Scrivener_-_BAD.png 97.7 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac