From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28272 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dominik Heinz Newsgroups: gmane.text.pandoc Subject: Process inline codeblocks and normal codeblocks differently when converting from md to html Date: Sun, 2 May 2021 16:36:46 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1262_1799104049.1619998606125" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40318"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCZMD6EIZQMRBD7PXSCAMGQE7DJW6QA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon May 03 01:36:49 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f189.google.com ([209.85.167.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ldLdp-000ANE-6B for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 03 May 2021 01:36:49 +0200 Original-Received: by mail-oi1-f189.google.com with SMTP id r204-20020aca44d50000b029013da91480a0sf2922640oia.17 for ; Sun, 02 May 2021 16:36:49 -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=8cwEK4ci+ccC+MRsa+uFWE10bkjHl2lrREOddPfFoRA=; b=Lh20dG5KK+jtT4a2BfS5BFIZDtXWG47BaRgg5omYaXaCXNOFeDH/z/5lUwVBxHTKFK 9lwxO2TRL/168/IQD5aszkkdoyk9fRaE9Th1FO2NSBoQ4QbbA5ComCN8po7rBtnwejeX R0u2+UyFJ0ebHmG9ImijnxwtZAGR8jKUanorIh7DDIB+tVsLXhguyTE7R4fkBSEjjCR3 VmC47qKGBmXj5CdBGmbW7qrORPTathYo/eG8+fH+gX3jmxQpAzm2UY3Pieo9FX+/skTo rgH676laPaXx7D7braJR5PeuYL3xlMyNqJW/5XHgFGQyw5K8eEDM8rRAWufGEOEQFClZ N56A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=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=8cwEK4ci+ccC+MRsa+uFWE10bkjHl2lrREOddPfFoRA=; b=DAddOC3Gu1DDZZYNsTcsA3xdlpBMey0GINHKeE4RgyKxNgElhcFL7A9AUaR+dg4N6E juHoaBDst/pakLkUsDAXHWeRZ8vbCe2iC+dbsDgIBNQn5y1dn0IIN/JdQOkvpF387Z9I wXOxQ5L+xnu/MnYTT1ikI7iEps3jR4UzVNk2vlcrtMBGx5JeHLsvtm8Klw8yai5y/tRM HGWSNy7qp+EpIZaUhz9/pOJT1f1cHAFN+gpNtxw3tuBVYSbO8Vcgg53QOoGWLz8/L6ah 6AKcw5F+LfAi0XDISoo9aluSYJi2deGfsKaK+uw02eXcvgycXnBdVrwGDxS7dALrDaMJ jhjw== 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=8cwEK4ci+ccC+MRsa+uFWE10bkjHl2lrREOddPfFoRA=; b=qd9eCYUqBpZRR+jWQ7iZafK9csB3vtzcD27oH3suMGhDtPb2coT4Fko5JyujtCbtsN Si3N3dO4B+YIPGQ/e4YfSoxmqlaCHoCzC7+3oWI3Mq+s9SucrGK55QoD55fQswUkQwMN JVp3TxkFJNwzEZ2nQB9YXXYva9DUw2VC/IH363GsurqAa4Fei0Wkwnq5Q1dd1OeLktqH LEodid0jYdE+eEayR76NGJYinLKbinXf+vCEa9I/dVw1/67dxyHHSmV+GlXg1fwc1Mv9 kDaEedQDUbZVfRpyH41pYGIJeqGC1cl0Wlhu5XcNTOfRJoM2IexBuDNc3WvqBCmB7aET xxnw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM53252y6C3zYB0884GZyCnJmqZt/QZZW7w0EZeHgkiQKyYwh2dNZS 27jsQhj4rqE2kQiPjexVJh0= X-Google-Smtp-Source: ABdhPJwVEeQPenwXarxUcvoZic9jwjywN9yv7y9CQZlz1HxmTE6DERjxcvE22ru7cOZdGDmzbWqI4g== X-Received: by 2002:a9d:3e1b:: with SMTP id a27mr13196670otd.101.1619998608277; Sun, 02 May 2021 16:36:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:f0d:: with SMTP id m13ls3345479oiw.4.gmail; Sun, 02 May 2021 16:36:46 -0700 (PDT) X-Received: by 2002:aca:39c1:: with SMTP id g184mr19551932oia.120.1619998606789; Sun, 02 May 2021 16:36:46 -0700 (PDT) X-Original-Sender: Domi.Hz96-Re5JQEeQqe8AvxtiuMwx3w@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:28272 Archived-At: ------=_Part_1262_1799104049.1619998606125 Content-Type: multipart/alternative; boundary="----=_Part_1263_868744217.1619998606125" ------=_Part_1263_868744217.1619998606125 Content-Type: text/plain; charset="UTF-8" Hello, I am using pandoc to convert from markdown to html. The markdown document I am processing contains both, inline code blocks (single `at start and end) and also normal codeblocks (triple ```at start and end). Pandoc wraps both of these in tags as to be expected. However, since I want to style them differently later with CSS, I need a way to differentiate between them. Is there a way to tell pandoc to add a class or something like that to the code tag, when its an inline code block? I didn't find anything in the official documentation on how to achieve this. Any help is appreciated. Cheers. -- 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 email 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/ca5c7bce-bd16-420e-8e14-274f502207f7n%40googlegroups.com. ------=_Part_1263_868744217.1619998606125 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am using pandoc to convert from = markdown to html.
The markdown document I am processing contains = both, inline code blocks (single `at start and end) and also normal codeblo= cks (triple ```at start and end).
Pandoc wraps both of these in = <code></code> tags as to be expected.
However, s= ince I want to style them differently later with CSS, I need a way to diffe= rentiate between them. Is there a way to tell pandoc to add a class or some= thing like that to the code tag, when its an inline code block?
<= div>I didn't find anything in the official documentation on how to achieve = this.
Any help is appreciated.

Cheers.

--
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/ca5c7bce-bd16-420e-8e14-274f502207f7n%40googlegroups.= com.
------=_Part_1263_868744217.1619998606125-- ------=_Part_1262_1799104049.1619998606125--