From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/26054 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: MyriaCore Newsgroups: gmane.text.pandoc Subject: Katex Date: Thu, 3 Sep 2020 13:15:19 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_740_789330357.1599164119632" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21678"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCQ7HU4AQEHBBWE5YX5AKGQEEV2ZEQQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Sep 03 22:15:25 2020 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kDvdk-0005QI-KP for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 03 Sep 2020 22:15:24 +0200 Original-Received: by mail-oo1-f56.google.com with SMTP id 1sf1788839oob.11 for ; Thu, 03 Sep 2020 13:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=+9brSB7kBkU7/8S7suEsYmeYkZw4ehEh2kEZwI7GOMc=; b=Wig/XEqxJTH+C2BCsow2NRKpmFuKGoOUaKPHxjYMab71SuqtlSbBWbBBq6fjiqm06I GqMZFSA7T/B9rKIq9hsZJQ0pBRLYadvmTfPhVCeOpac8oaFUf3GpS6LWdHJGFLjVeNnt TE1ygQwatb97E/SdOV7sBYBVxXFKO91cEqxps2qsf6D1jtDc/1nyrpsM0zybDcBkRSCs +oXtC/N5LQGe26MwuaW+lMiDQ837iInsAJsi6gnMVeqx4hF/C8/XrJm9Bz4Lvcg2HkBV piD6xqV2sZVG+2kAPdGu10qYebsCywC7kHI8ikJJieKKiZRK+UAMhHa7lgG6a27k9vRD Xp2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=+9brSB7kBkU7/8S7suEsYmeYkZw4ehEh2kEZwI7GOMc=; b=n9SJdvpegxbHc+qnvyLoNV5VjijrWfJvBCGIgAP8j/G/JYLFQSpRRPv66l5nb5Ab8d LynKtfeLFKuruVPjiZ3r2zA+VUrJjhlVJd8DLmxVUhDf948bGZNIkQ0Lv/sLOmxoszgO CHRv6LHEb4VjCBj7He9UVsKzJruNEa3jiinFFwY0I+i/BBoZ2YJ9WIlfC4akEjPqMHdZ rPPnlOuJ4hcbWQ0/BdQC4k4/0wBbf95WirRRdxhj8kfbXM+wak5BoQ9k36fZuRC4wZmJ EF1xjF+LJKpZJ+BDaZyVsJ4ebK9VKPywhRnH62ZD+ncZJzYWyxIJb5dJg2jwnqNDd8bZ 0jZA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533ZMKQRXoXAs/nc9xAcRPvpWARLFuAe3kNl4VebE6SsUtAVmyKK yqd02zmDWBKr+YcTDGVl/80= X-Google-Smtp-Source: ABdhPJxHD6Xd4mgSmCklqlZ2SN1xcRsg7qFZR5MReJA2zGvZW6S9SmctD0q7hYzkKiB3VBDZXmu5wg== X-Received: by 2002:a05:6830:1d5:: with SMTP id r21mr3178067ota.244.1599164123561; Thu, 03 Sep 2020 13:15:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:b541:: with SMTP id e62ls1536842oif.2.gmail; Thu, 03 Sep 2020 13:15:20 -0700 (PDT) X-Received: by 2002:aca:fc85:: with SMTP id a127mr3176230oii.148.1599164120530; Thu, 03 Sep 2020 13:15:20 -0700 (PDT) X-Original-Sender: me-iMRNxolsNr8QFTY0IWPKwg@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:26054 Archived-At: ------=_Part_740_789330357.1599164119632 Content-Type: multipart/alternative; boundary="----=_Part_741_476549272.1599164119632" ------=_Part_741_476549272.1599164119632 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all! I=E2=80=99m really struggling setting up gitlab ci/cd=20 to render with my notes.= =20 Everything works perfectly when I generate the html locally on my laptop,= =20 but the gitlab runner / pages copy seems to have perpetual issues that my= =20 laptop really doesn=E2=80=99t seem to have.=20 The bug I=E2=80=99m experiencing is that my math is displaying *twice* - on= ce in a=20 semi-formatted way, and again beneath it, without any coherent formatting= =20 whatsoever: When I took a peek into the head, I saw that katex=E2=80=99s scripts and st= yles=20 *did* seem to be present, but for whatever reason, they don=E2=80=99t seem = to be=20 running. In my local copy, I have fonts and styles associated with the=20 katex-html element that just aren=E2=80=99t even there with the katex-html = one=20 served up by gitlab pages.=20 This is the command I=E2=80=99m using: pandoc --from markdown --to html5 \ --self-contained --standalone \ --filter pandoc-plantuml \ --filter pandoc-mermaid \ --lua-filter gitlab-math.lua \ --lua-filter fix-links.lua \ --katex=3Dhttps://cdn.jsdelivr.net/npm/katex@latest/dist/ \ --template=3DGitHub.html5 \ $(MARKDOWN) I=E2=80=99m not sure why this is happening on the runner, and not on my lap= top.=20 This is something that I=E2=80=99d really like to have working by the end o= f the=20 week.=20 It=E2=80=99s clear things aren=E2=80=99t being incorrectly parsed (for exam= ple, by some of=20 the wonky filters=20 I=E2= =80=99ve=20 setup), since the raw test output appears to be doing things correctly. For= =20 example, this: {{m+n} \choose m } =3D \frac{(m+n)!}{m!n!} =E2=80=A6 is translated into this, when output to stdout:

\[{{m+n} \choose m } =3D \frac{(m+n)!}{m!n!= }\]

The only big difference that I=E2=80=99ve been able to spot is that on the = pages=20 copy, when viewed through a web browser, there seems to be a weird=20 classless span between the math display span and the katex-display span.=20 Maybe this is preventing the script from recognizing the katex structures?= =20 Either way, I have no clue how to prevent this from happening, or why it=E2= =80=99s=20 even happening at all. Any insight? Thanks so much! --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/a228855b-e00e-48f0-8bfb-768ce2199b29n%40googlegroups.com. ------=_Part_741_476549272.1599164119632 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Hi all!

I=E2=80=99m really strugglin= g setting up gi= tlab ci/cd to render with my notes. Everything works perfectly when I g= enerate the html locally on my laptop, but the gitlab runner / pages copy s= eems to have perpetual issues that my laptop really doesn=E2=80=99t seem to= have.

The bug I=E2=80=99m experien= cing is that my math is displaying twice - once in a semi-formatte= d way, and again beneath it, without any coherent formatting whatsoever:

3D""

When I took a peek into the = head, I saw that katex=E2=80=99s scripts and styles did seem to be= present, but for whatever reason, they don=E2=80=99t seem to be running. I= n my local copy, I have fonts and styles associated with the katex-html element that just aren=E2=80= =99t even there with the katex-htm= l one served up by gitlab pages.

This is the command I=E2=80= =99m using:

    pandoc --from markdown --to html5 \
        --self-contained --standalone \
        --filter pandoc-plantuml \
        --filter pandoc-mermaid \
        --lua-filter gitlab-math.lua \
        --lua-filter fix-links.lua \
        --katex=3Dhttps://cdn.jsdelivr.net/npm/katex@latest/dist/ \
        --template=3DGitHub.html5  \
        $(MARKDOWN)

I=E2=80=99m not= sure why this is happening on the runner, and not on my laptop. This is so= mething that I=E2=80=99d really like to have working by the end of the week= .

It=E2=80=99s clear things ar= en=E2=80=99t being incorrectly parsed (for example, by some of the won= ky filters I=E2=80=99ve setup), since the raw test output appears to be= doing things correctly. For example, this:

{{m+n} \choo=
se m } =3D \frac{(m+n)!}{m!n!}

=E2=80=A6 is translated into= this, when output to stdout:

<p><span class=3D"math display">=
;\[{{m+n} \choose m } =3D \frac{(m+n)!}{m!n!}\]</span></p>

The only big difference that= I=E2=80=99ve been able to spot is that on the pages copy, when viewed thro= ugh a web browser, there seems to be a weird classless span between the math display span and the katex-display span. Maybe this = is preventing the script from recognizing the katex structures? Either way,= I have no clue how to prevent this from happening, or why it=E2=80=99s eve= n happening at all.

Any insight? Thanks so much!=

=E2=80=8B

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/a228855b-e00e-48f0-8bfb-768ce2199b29n%40googlegroups.= com.
------=_Part_741_476549272.1599164119632-- ------=_Part_740_789330357.1599164119632--