From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31571 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John MacFarlane Newsgroups: gmane.text.pandoc Subject: Re: Section and heading id in MediaWiki output Date: Mon, 17 Oct 2022 08:56:05 -0700 Message-ID: <926E2AED-D785-4763-8368-A35EAB35B6FC@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11603"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDW7ZIEHTIIBBGHWWWNAMGQEUDFIWZI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Oct 17 17:56:25 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-pj1-f62.google.com ([209.85.216.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1okSTX-0002oH-Ii for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 17 Oct 2022 17:56:23 +0200 Original-Received: by mail-pj1-f62.google.com with SMTP id b1-20020a17090a10c100b0020da29fa5e5sf5611448pje.2 for ; Mon, 17 Oct 2022 08:56:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666022182; cv=pass; d=google.com; s=arc-20160816; b=cRR/95pvgrKkZuUmbjwV41VY0KKKQF+xXEGPH4Ps888dF3fjSpJgzXsWuJvV0PPivt aE9XUWW1qvyKhE11W04kWM6VcDmN985zANM8BlJTTSRxOsbCW+7xR9rxNIw19JZl764o 7nNMQBRew3i+3lS5Dc6ndU74SUvV7UHwti5y8rIJLN31GAVzgGWZbFW2/+HOAFy+6UsT SXyFcql9KYQ4gAFd/YIxa4EoUBm69Vefc4xFGtNB7OJwDWpJcE/OyBjZArYmbVAOVMxu nyDpCAvmdi6W1WrJI4LlzCJHvgsyIXdngidj7/Rn5o9hub+8wqebTFjgyOLfkyvjqjkM tLTA== 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:message-id:in-reply-to:to :references:date:subject:mime-version:from:sender:dkim-signature :dkim-signature; bh=WHLn6bhR9J6m5yu65CJvAf06oYttFTZsCRqnv4Z4gxc=; b=hEJpLV5+QcXJX0nlQci19qUf6qLD3ro+flrxHmJZKUAtxs/5w2eE8J6NdijB9/lEtf u8yAc0uJDOSTXk7vTkMpynXgi2yMEm9WYFlepJZffFHxovKsgOEf+Fv6rUW2kXog3jF/ COtmxWk/Pk3amLY4u6QGIJzUvObvgdwaElPozTyBORp1wO2QowEETRABNKm0lDMctLC+ KqUfD9QXy/BiLzxfL0NiE6ykyYk5de/m7xGp+1hDmBo3S6BjezQNlAL368UxdxbfART8 eW2uMsXMistEVDQKQhsmsrHTIoVkBqt95rCMBPd2LkLuJYUYI5RQ96utlOrZWOi8HpkL UBVQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UUJ2eAEm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:sender :from:to:cc:subject:date:message-id:reply-to; bh=WHLn6bhR9J6m5yu65CJvAf06oYttFTZsCRqnv4Z4gxc=; b=N8Ge5wtjgjiw6F+i5Jpw+jRukMdLiwlYk8GDGVzqcSO388yKBC4h7l6VVplAbIMcGr hs9xb727w+2PCVotrein2d0KqxI38VFcfwO0V4EZQy2U9ZPqitUwsuxoq4zTsVmbLpb3 aTsHzxbAxHDWO77nHYLT3noVWDEuzGyhzuwT9dElDxvUx6QIkFvfMP7Iq2GXpZRnWbMv ZyEi0o80R5sBYY/QaKl2eD52kXJvHhoHUgFr7LFWm+3/AUOQF8z9SSNcHIDlsNIt8QDv Yco8FGkJmzRSfLg9Dl8BWmwXD4qRwTAKTy8YRa7jJ8Rx8Va/S/flq2YL5WWlIglzr1VU bq+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from:from:to:cc :subject:date:message-id:reply-to; bh=WHLn6bhR9J6m5yu65CJvAf06oYttFTZsCRqnv4Z4gxc=; b=W2lCcJmnWq7YFZKPwEXHU0B2/Wce/Bq9YJqiaZ4BAhaG28RdAo7JVUOo9Y469pSh52 wtNn2NbkaDlQ0Hcasnn/130K2m/ZwVEGAI25O2BTO0iY877kMHz5ohzi293Optx+qOyy OdPzMNvCuEt4X9aydv8bPItR7ujZRyMujJBgXIVoECBTp3JbbDxpksMEGAiauSpolilA u+6DeChNCDioLJKVtWosEmvYdivyqN9QQrcrFZdTlI9INyNGthDWZ5bzcNmLfEJxR1gz KQidG3zV95P+CbCA9fi+tb/VpFboFJRTGTlIQkkaWnHMP1GFbZ7oj0O3ULLwxVvQz1zg 67IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:message-id :in-reply-to:to:references:date:subject:mime-version:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=WHLn6bhR9J6m5yu65CJvAf06oYttFTZsCRqnv4Z4gxc=; b=ZUN8TTT9nSlEJqs4G5Rq2CXXBccHOsRsHFN8o1aD678SpABLdKBFAHotrVZPfKJpsq f1OIq7J3uk4jBEnlMxxkW5kPYlI4Hg30E/oJV9gUCJp+b5q2FwD4rRn+j4rP36e9U82u mRjxKDxCXZrFGlYPjTGIWM3G5pSQew29xnfn4PcxEoXJbOPTj1PZLvLwQEfyj8hkmtK0 oD2bOBuxrXTs931ZUadJkfDAhFNPhNfW/5BysVd9WZONvKzYbFfMb/sqXG/GJMOG5/XT s/JFLb6Kbqtjr1mRNApq61h5c+LobKWimW80OpAXadd6+3 Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2+HYMANKP5xwX4Q+iZRjRFM5BYdVgUPysL16TzDmkEr61sIDdy TxLznayasqLoZx0RtfRq1mc= X-Google-Smtp-Source: AMsMyM780OqtdebOByoZvQtK6GJzSy0ttFC+IOPGYtbRXa3Vwp08HWA1CcWHopO8e30TvkyCwtL1WQ== X-Received: by 2002:a17:902:6bc7:b0:178:8305:392a with SMTP id m7-20020a1709026bc700b001788305392amr12319204plt.39.1666022171947; Mon, 17 Oct 2022 08:56:11 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aa7:8882:0:b0:563:550d:feb0 with SMTP id z2-20020aa78882000000b00563550dfeb0ls6151998pfe.5.-pod-prod-gmail; Mon, 17 Oct 2022 08:56:08 -0700 (PDT) X-Received: by 2002:a65:674e:0:b0:43c:3b91:236e with SMTP id c14-20020a65674e000000b0043c3b91236emr11333731pgu.510.1666022168254; Mon, 17 Oct 2022 08:56:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666022168; cv=none; d=google.com; s=arc-20160816; b=sXfwpjLZo7Za5kib21D89mAotVqYqZYDfMyxYYIZftYZWMoofzHJDVXWPxAWjsBSl7 xtTeKn0H6iNHFJicfOHlcHPma1LuWpM6bI2JQac8KgvH7C5kdh96NBk3guhtVfw5gSK5 G8bZQwuL2Bi79uqlqv0no77FsOycfmj3DQ8qak/mb7Eym3BLpxO3t0jU/4ZxVePNfGxC 9KSAaNxMG4dxbL+LGX/f7aem4kLY8d4QIe1bBZuyBQwYRz98GnGOC2fvSxOZzr9+LDzc caxSaM6hyhQCs7E76fhizht0SKmXUveDvKjwofeR69upkDq7rhqVVfjTkkT9UyTS02qq QinA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:dkim-signature; bh=y51gA+n1076ZfKlTz2XXUBR1eiSBD2OPr0ZEOM+JrXk=; b=EWyw0Ybqa0M/NTsWB8vB3V1C/sQNOojyxelOEuwqbXXBk6yPRFRVeUk3I0mMGQy6G6 VxAyQ+HFwhuSCd5O+xjNnaHei1DdFskV8Sp/3QsQiu8maDlQSvkAV2zy6essAxnXXShw Il+wBmO/nLR1F2jIA2Rrx0X9l7foTqH4v/SVo/uRADxQpD1sKh/ddVIAlk+HSAKzaZpm u4BFI+mhI8eCV4ZDWunVnkYK3XOvyMCwwyYuKtqvAuw3E98I+Vz+FYsuGxxH91mqKTTl +YNRcUrsUYZyOMDT8wzGi9T3hwTFcE94fpiISMqPnWbShW7Hfk4r2aFkti6l/tgWXw9w Xq/g== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UUJ2eAEm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com. [2607:f8b0:4864:20::433]) by gmr-mx.google.com with ESMTPS id il5-20020a17090b164500b001fdfeac4ccesi410643pjb.1.2022.10.17.08.56.08 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Oct 2022 08:56:08 -0700 (PDT) Received-SPF: pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) client-ip=2607:f8b0:4864:20::433; Original-Received: by mail-pf1-x433.google.com with SMTP id 3so11489653pfw.4 for ; Mon, 17 Oct 2022 08:56:08 -0700 (PDT) X-Received: by 2002:a63:81c3:0:b0:458:f345:7ff9 with SMTP id t186-20020a6381c3000000b00458f3457ff9mr11380940pgd.378.1666022167648; Mon, 17 Oct 2022 08:56:07 -0700 (PDT) Original-Received: from smtpclient.apple ([2601:644:400:7c40:511b:3a4b:7767:5ad6]) by smtp.gmail.com with ESMTPSA id z11-20020a056a001d8b00b0056286c552ecsm7156874pfw.184.2022.10.17.08.56.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Oct 2022 08:56:07 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Original-Sender: fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UUJ2eAEm; spf=pass (google.com: domain of fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::433 as permitted sender) smtp.mailfrom=fiddlosopher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:31571 Archived-At: Seems like a bug to me. Can you open an issue at our GitHub tracker? https://github.com/jgm/pandoc/issues > On Oct 17, 2022, at 8:04 AM, BPJ wrote: > > When converting to mediawiki MW headings are prepended with a span > ``, evidently to provide an anchor to > pandoc's original/automatic id so that internal links will still work. However > if there is a `
` element[^1] I frequently end up with an identical id > tag on the div resulting from the section element and the automatically > inserted span element, which seems like a bug to me: > > ``````html >
>

Head 2

>
>

Head 3

>
    >
  1. Li 1

  2. >
  3. Li 2

    >

    Li 2 para 2

  4. >
  5. Li 3

  6. >
>

Text

>
    >
  1. Li i
  2. >
  3. Li ii
  4. >
>
>
> `````` > > ``````mediawiki >
> > > == Head 2 == > >
> > > === Head 3 === > >
    >
  1. Li 1

  2. >
  3. Li 2

    >

    Li 2 para 2

  4. >
  5. Li 3

> > Text > >
    >
  1. Li i
  2. >
  3. Li ii
> > >
> >
> `````` > > It seems that the only fix currently is to go through the MW source after > conversion and manually remove any offending spans. > > I wish the mediawiki writer were smart enough to not insert the span above the > heading if its id would be identical to that of a parent section div. Would that > be possible, and is this enough of a bug to submit an issue? > > In the actual use case I modify the HTML input with an HTML editing > script/library before conversion to mediawiki, and as a part of that I add > attributes to the section elements which I want to be there on the div in > the MW output, so removin > > [^1]: In my case inserted by pandoc into the HTML now used as source at an > earlier run. > > > -- > 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/CADAJKhAJARL1rpi2k-j-1jZLTGoEFnmhfybH9-F6W-_SaYrXNQ%40mail.gmail.com.