From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32533 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Miguel Newsgroups: gmane.text.pandoc Subject: Header attributes and docx Date: Fri, 5 May 2023 22:51:48 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_7826_1952489619.1683352308129" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12641"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDGO3MPRREHRB5OV26RAMGQEQOVMN5I-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 06 07:51:53 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f62.google.com ([209.85.210.62]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pvApk-00035k-L2 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 06 May 2023 07:51:52 +0200 Original-Received: by mail-ot1-f62.google.com with SMTP id 46e09a7af769-6a7b0f4829fsf1794441a34.0 for ; Fri, 05 May 2023 22:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1683352311; x=1685944311; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc :subject:date:message-id:reply-to; bh=5LzGE/XCUP7Bp8g5ZQKb8PllFwxH5B572Px05g1cFpY=; b=Nf1DGkdFr+Zi35nJxvTYWIxXNRhmpdJPmiObxoOvzWWTEMSBVTfENJEN8KqPpkrnHd YtT2w9CXzeYf5YfrFZIXePfSwv/6JdfM4RWEI/poRSPvpskXO+vAgfnDUnS6DtlnPq0g fPWs/zqqDhD42OEuxh5wKTueqngBEyn+j35B1J8gfQWFsdZySeoygeXBTSAdgSgLNk6Z uYN4k1+YVQt9R8xDoGC0N6TcDBSjZ81Grh7/5+h1SsYtpu8j0HO9LScnTJg0zupScqVy zSwgcR93R5C084j3Edn924wneGsivT4TFGkkYvv1Jk4U8S0yJP1zCofhNl2KpyW7nN05 aPWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683352311; x=1685944311; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:message-id:to:from:date:from:to:cc:subject :date:message-id:reply-to; bh=5LzGE/XCUP7Bp8g5ZQKb8PllFwxH5B572Px05g1cFpY=; b=N1diHZRB9BPtD6KTvi1wTLGdYTVB+qJOBl8hylzAXFg6r9cPM1B2ZPQ542iT6gnWQC Tvk9vtbNCFu7KvSMZ/DGSZ+FJUx06oZ2MjDZD5B2wACkHYEKVe6bfLv4t5gPH6pABHOS EZYk3evnphJM+bJ/G1I7uj8Yl8HAKSZguKHUkuaRuDsIQbNaq873Id5SrXUia1RCcelW omMCG635V2Aha01JrkvzH3/Umd67w5C6byRZt2xxiDjRdwrSK3+JTlAuh8HGS2LwYdLw 2xzc+0tNoBXOKjv3Oz9lcleGVrNvSgwnUXd1sK+x0Xuz/vRyTpQxm5tCNL/Nyi6HcipJ amxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683352311; x=1685944311; 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-sender:mime-version:subject:message-id:to:from:date :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=5LzGE/XCUP7Bp8g5ZQKb8PllFwxH5B572Px05g1cFpY=; b=FEQ1lLvtuN++wUbr12YnEtBC+2FuSIcbd7tVQWQc7ykR8orqrCYOL9cqmQHGWiZP1i BrS6keuVA43t3sqDnnzVWKky9nLQTpyj7lmoVatevyzvOa9CWp5Gg1Cq0EVLmVa9LCd9 eKe4azTs8ER+YrBaI+fVfwKIQsHSIkKm5qv+ypmwrW/4+gubqWql9ge/uiG/HQpDlfM8 ul/KO1w9yt9EJ2Svy3QmJmyPRDkq3zoJUasUahfraXdgryUO9AxKdkhzn8znCiFfcQUb vbGQexgxy2c+22C1fVKKh2PtfevBj9Y8+Eeimk3siNZJMcbXQahlHyjQAc6PTsLWTkwt Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AC+VfDzqEBIEVxKKz66bUj/+/TjwRhqJXXY4jZLP3cGsLiYXmHOQUcyX HzHQUnell9ThpLqUGxBPPaM= X-Google-Smtp-Source: ACHHUZ4w3k2irEBjdRBMz3SI9z8+vj7h75/RsEe7QaX3XHP/9VMunKva/eUnUPX+rAoewm3j6SbNPQ== X-Received: by 2002:a05:6830:1251:b0:6a3:e43a:c707 with SMTP id s17-20020a056830125100b006a3e43ac707mr989487otp.7.1683352311337; Fri, 05 May 2023 22:51:51 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6871:4492:b0:18f:36e0:145d with SMTP id ne18-20020a056871449200b0018f36e0145dls6545196oab.3.-pod-prod-gmail; Fri, 05 May 2023 22:51:48 -0700 (PDT) X-Received: by 2002:a05:6870:10d4:b0:194:c88a:98fb with SMTP id 20-20020a05687010d400b00194c88a98fbmr1278892oar.0.1683352308799; Fri, 05 May 2023 22:51:48 -0700 (PDT) X-Original-Sender: bagnon-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:32533 Archived-At: ------=_Part_7826_1952489619.1683352308129 Content-Type: multipart/alternative; boundary="----=_Part_7827_1835587720.1683352308129" ------=_Part_7827_1835587720.1683352308129 Content-Type: text/plain; charset="UTF-8" Say you have the following file: # This is a section {#section} Converting this to html/docbook/latex and back to markdown properly handles and keeps the header attribute: > pandoc -t docbook test.md | pandoc -f docbook -t markdown # This is a section {#section} But when converting and reversing from docx, the header attribute is lost: > pandoc -t docx test.md | pandoc -f docx -t markdown # This is a section How can this be fixed, and convert back from docx without losing the given header id? -- 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/d9a83a0b-50b4-46fb-9b7e-4f0855cf0599n%40googlegroups.com. ------=_Part_7827_1835587720.1683352308129 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Say you have the following file:

# This is a section {#sec= tion}

Converting this to html/docbook/latex and back to markdown= properly handles and keeps the header attribute:

> pandoc -t= docbook test.md | pandoc -f docbook -t markdown

# This is a sec= tion {#section}

But when converting and reversing from docx, the= header attribute is lost:

> pandoc -t docx test.md | pandoc = -f docx -t markdown

# This is a section

How can this= be fixed, and convert back from docx without losing the given header id?= =C2=A0

--
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/d9a83a0b-50b4-46fb-9b7e-4f0855cf0599n%40googlegroups.= com.
------=_Part_7827_1835587720.1683352308129-- ------=_Part_7826_1952489619.1683352308129--