From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28231 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Re: changing format of --numbered-sections Date: Tue, 27 Apr 2021 08:27:10 +0200 Message-ID: <87y2d48cox.fsf@zeitkraut.de> References: <676ca0f1-1c1f-49c8-afec-c6453c4d298en@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32336"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBRG5T2CAMGQESEWEELY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Apr 27 08:27:18 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-wr1-f63.google.com ([209.85.221.63]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbHBm-000888-7I for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 27 Apr 2021 08:27:18 +0200 Original-Received: by mail-wr1-f63.google.com with SMTP id q18-20020adfc5120000b029010c2bdd72adsf2327877wrf.16 for ; Mon, 26 Apr 2021 23:27:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1619504838; cv=pass; d=google.com; s=arc-20160816; b=J5wryhiEBnx3P3YR+BmRhk5qnwtR24vphcQQsL5ClbvCJKya91H+ywWglrFJTLQPXw NBA4olqFKLuWshG2Fm6vR3S+5iUwVjY14Qg5BA0iWFK+4FhirIC0n+Yq+MJnc7miHJBW XmERDYxgDZ+0iU70/8HZYo9Ceo2guBN7G0AfUlSI4lOWd4EpM6R5zZVP4mBiR3BBoQJ/ CfOAoazLE1hdnDkICz7uqREBvTGsEkg22dLeDw2BgUJq6EyLHmlHb3fMTB+pZG9Z+Cod TEri8zcIBdVJY0uUwvPE90rD3V1J66vAP88mS/x8nk4ouI+ROLsEzqpOfemF4Pu+huuw xauA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:message-id :date:in-reply-to:subject:to:from:references:sender:dkim-signature; bh=dG7jS1CUKklrT3w8QzQwzMilviFTK3uX3ANInjA9Qe0=; b=neWqP2jLCNaOhR90HQEqrcogruq84vc49zb84Yn3Jf8vgeJBUij19LHZIiGWXC7rkM 6W5hs4V3a/3BsUJg3WZBts/yXRtaDZFSu/kyRli2LdXiEyvn18wZUkuRo9XWZ4qWaPUD if2IKIqLQ0jenbllLSjDnMgZigata3N81SJ9bwbABbrLoWWtdvtaDp7eagp1EskaDHo4 q4WSrt+JEH9yq9S2MfCu8xBv3odENqUKRhE5L+p2EI0kE3yoMwfFBAPwjH9gk8XGuKhb PLjkxjqN9IgXovtFarGwXYlIPTxVRUP5Esvnq7wkakcBjd9DQ2QrTRJzkKeJ8gXZJXdt xxCw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:references:from:to:subject:in-reply-to:date:message-id :mime-version:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=dG7jS1CUKklrT3w8QzQwzMilviFTK3uX3ANInjA9Qe0=; b=HEokn+ptoa4Wl9LfE8H99Zq+a5vtJ1gXwtFWpf7oh1nvJa/xOlKvOiIiRcAbP7gUJ7 KfYpLKj3I1M2u31R73Lx3n1SBNKiVQrxtgETCKgM7aBgdXMaJSg+//9b2TXuLom3E0mX 5o7wLmOqwxHpDNGJv18RW0v8e8PnVzGRTnRjhTsdNEp2+H61XPDC0xAGt+pMBuo7QQKm dQg5bkZUiOxIGhBSbVMaFZdtEDUsOUL6YENqPZwOPTDIjVcXLMhM5zJ8Y69y0TnXrGWH Ncbf3tfkgpDsQnPmnNBhQFAES8FKJj8gkDa7FahgJhHk/cOs8SQ1MwSOaU1TVDd8AIps 9Xzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:references:from:to:subject:in-reply-to :date:message-id:mime-version:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=dG7jS1CUKklrT3w8QzQwzMilviFTK3uX3ANInjA9Qe0=; b=aK//O3eaCv2t5cgMP7qZNODxawnYdaxe3UIctXWLvLzbHrHkWeQaOvNQJ6Mx6bClCU ggpJsykPqOu1kk2YSMDLKTNEzgGPPYrnuRU5MayDaUy7GOM2fSvfFg9uEZkWNGiiPgrS 0SLz4SXhSvu+EL72nrYoNjF5SgJBQ2QXBaAtrm2dwvz8+K6kYCZrJrYc0ouGq6unQyBH CCW0vBMCb2sZdBKugsfbbWC/IL1CpsuQ8X1WGsQJ5zr7caun9r3UpMurICAyZmZy8DvG dLlVTcIkI5aPyYJsP3nvv8mK53LpAFrqjXSbQeT15DxK5KToUsSL+1S6mGwXYxavlhLn rGHQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531yVPbUbBQxoieoamk8tq+vxNZtaPVabef69RfyFdfdBWKD+hYV eNPmU9o3r6tsHPOgSBs5lNE= X-Google-Smtp-Source: ABdhPJxZ+0rY0z7YRVX54pCp+nvXVPqtWTZzEuMUrecNuB2rAotPscunc5SxKSNdCoSrbrqu8zA0Dw== X-Received: by 2002:a5d:4acf:: with SMTP id y15mr27281303wrs.245.1619504838016; Mon, 26 Apr 2021 23:27:18 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a5d:6804:: with SMTP id w4ls4474050wru.2.gmail; Mon, 26 Apr 2021 23:27:15 -0700 (PDT) X-Received: by 2002:a5d:6a90:: with SMTP id s16mr27504518wru.163.1619504835562; Mon, 26 Apr 2021 23:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619504835; cv=none; d=google.com; s=arc-20160816; b=bGnnEEJ7USbe5fVodgzJD6q69AMwCMSMeY1v4tGvu3WI1dbAYIS82DpZH7zbQf5MAW spet1G0RJePhoAFb5+s1/hnXPwvbfjHdnyIk71L1yuP53KWaKLH9LxUn9foVZUZ5zyDw N/w8FX/NL15nPsOmPeQP7ET7ZJayutGaHbGFPW+fopc2o4xN8K8aO5QatFRI2jMrqy7c Pir/+zNWFxIQfugSa/wGnlkxw76+iBw4mYLz5GdnAWpvzTYSes68qu936h8dn+Jlkwbo ujDXVwzUDfOV1keMVgwRexin3uOzDiBABaD5J8I8dn49UV18x7wc+jltoC9YaTEuN+BD l9mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:in-reply-to:subject:to:from:references; bh=a1vOIjLxfzn2EWzbamQo1XmwvLBw89z8Mg1SLiCAR+g=; b=oEQxHDFE/4UHijkBmQ5uqBG8IEDeFlRhPoHCMrJUsBvMTqlAHqbrrTA6rXZONubJco Le2k667tTnF7/8zl6+AlSAdtyJ7XcZ3njgxgK2t80CqhAjgH1ak0q2OKpNGWLvuPfxMA VJhRafP3uRckNlzGMyimJ+rCePwKt6Z5xsAHK4lAEmHZ3MM9rgvxIfBnsNWkJabpgc6A fOJ0ZdYA/fz14C/3c5fDmzSkVAWa5X+0yaLM775AHWx6sxmc6MoUXZfIM0xJoicfHO9E 1gdj3bM4YNGa15+Cr+ylbapWdGTcBmaDQ1h1bnQsC2dmlOCedj5UDtRdECaQyxdbnjnN azqA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org. [80.241.56.152]) by gmr-mx.google.com with ESMTPS id s141si185254wme.2.2021.04.26.23.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Apr 2021 23:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) client-ip=80.241.56.152; Original-Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4FTsHl1Vz5zQk24 for ; Tue, 27 Apr 2021 08:27:15 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Original-Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id rRVSUp1eGqJn for ; Tue, 27 Apr 2021 08:27:12 +0200 (CEST) In-reply-to: <676ca0f1-1c1f-49c8-afec-c6453c4d298en-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Rspamd-Score: -5.15 / 15.00 / 15.00 X-Rspamd-Queue-Id: EF92A1802 X-Rspamd-UID: 2cf85c X-Original-Sender: albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 80.241.56.152 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@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:28231 Archived-At: Tim writes: > I am converting markdown to html using pandoc with an associated simple CSS. > > Currently, the numbered headings appear as: > > 1 FirstHeading > 1.1.. > > 2 SecondHeading > > My aim: I would like to modify the format of the headings very slightly so > that there is a period after even the H1 headings: > 1. FirstHeading. > > I am *guessing* from looking at the html output that pandoc hardcodes the > html output for the numbered sections. Am I right therefore in thinking > that I cannot modify my CSS to achieve my aim. > > What then is the easiest way to achieve my aim? If this is just for HTML, then you could use CSS to add the period. Putting the following anywhere in your input Markdown should do the trick: ```{=html} ``` If you also need to target different output, then I'd suggest using a pandoc Lua filter. Put the following in a file `heading-periods.lua` and run with `pandoc --lua-filter heading-periods.lua` ``` lua function Header (h) h.content = h.content:insert(pandoc.Str '.') return h end ``` HTH, Albert -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124