From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31145 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Martin Post Newsgroups: gmane.text.pandoc Subject: Filter for automatic md > HTML block level element ID creation? Date: Sat, 30 Jul 2022 04:35:44 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2728_1012868585.1659180944989" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16553"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCHYFZ6CWYNBBEVPSSLQMGQE7J6TFPI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jul 30 13:35:50 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f189.google.com ([209.85.219.189]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oHkl3-00045X-Ik for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 30 Jul 2022 13:35:49 +0200 Original-Received: by mail-yb1-f189.google.com with SMTP id m123-20020a253f81000000b0066ff6484995sf5626448yba.22 for ; Sat, 30 Jul 2022 04:35:49 -0700 (PDT) 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-sender :mime-version:subject:message-id:to:from:date:sender:from:to:cc; bh=0ZPXPOqep0HSt9gju5tmAjFgufnCXBVeBXS5nZyMdR8=; b=TMkix9zAdJ2PzXA/uEYdA1PvS74asuzhJyD69LUqwshF4TJ60dhOiB/YQtVyO0+Y0n +Himmq+m5vrVmG65SbkqIlKY+XYTkGFAnMVrkG8es1n9Gnqycnepd3gNicuLfTXaQndQ /bqg6na3CPUYjiF4S13okL8k2IX6Y+Tb5vpL28krccDEQ7PNC2iiX6wsWYWPorl7UO7q cYoCWjcORBz4ggCeZawZIdU7aUsDiEViKrCnSGdSu/fR5oLym0mCjW26bWiRjyohb1xO C8dR6+ARO59WpOEa9eu60xbM1T9zGCwNT5ZhRyZbQ6KKE6G2++YHdMmc6GOAuweScW/i R/kA== 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-sender :mime-version:subject:message-id:to:from:date:from:to:cc; bh=0ZPXPOqep0HSt9gju5tmAjFgufnCXBVeBXS5nZyMdR8=; b=h3gTnw2ZiJ8jt4UL+IqN0sT61cuemekoae6pOysUBd4OQFJ0tsIHFYFPjRo6A1X/mt sfGBr+n/IxVLN8Ci8x9uvsVW1F7pwH/oIp6rloS/JSFx9w3rU6hDJKJHkpZSZWvnziKJ g70yWch0XPhzpD+ThyerqkEah7Jrzm6ekq5eTG/e1//mE+++LSEoS6qQ3CB0gzlEekkx IS8pZpokrGk9sZtAy35ySL24n98ahvIxsMGY/jeqmkMhM4koNWjo20j5VJltEAlh6xVY LGyQ7kAAyti/mroYv+LGtYsHq7IOPRQo4UyeZKJlBvHxU2N4onJNdcsFXv5t6LnjtY1j 14tg== 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-sender:mime-version:subject:message-id:to:from:date :x-gm-message-state:sender:from:to:cc; bh=0ZPXPOqep0HSt9gju5tmAjFgufnCXBVeBXS5nZyMdR8=; b=eKN3z7t6PosiTH7FnYAHJTg0F78HLeYxubiDgBQgl0v4QB4PKH0iqa16aCBn2rmzGu mJpOXGxyQC7oiW/0A83jPMrtRs2QACIMuO/xjMmun3riUTR9u7O5527l5oeNtIq2ttxg hxHaO+ndJMBXv7Cm9gaEyW3JZKBa/kHE7XOaRNbaIarBAuwONychJoF28ZlrmI+jMCjU EMJabXVfkYOO7Ry4UwOc6uaBV8rp40HFyw4OQuLUu13NMWJFm1BTwZw18e32DyQ1w1jS qqM6DqLr5kw/ZCFFceDzDt0ATFAB5Gd6/pC4HCagHf7skFfHxuTbfyxZeGp7Sgt7qKTd pUrg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACgBeo3comI46K8Lq1vluOpQ0kUKY6Pcw0sCvLMpMUgY2RQkqFbSigPI yq+Bm7Qy8KUZxmNWLlk1PLM= X-Google-Smtp-Source: AA6agR4uJsJzAwGPz15n12F8speN1IVZwc9y0KjzEnHa7XNsaccAeiq3Udu3vnIhTb8zzLXGQGuG0g== X-Received: by 2002:a81:8315:0:b0:31f:6023:7526 with SMTP id t21-20020a818315000000b0031f60237526mr6266092ywf.328.1659180948566; Sat, 30 Jul 2022 04:35:48 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:dcc2:0:b0:676:e628:3c2f with SMTP id y185-20020a25dcc2000000b00676e6283c2fls230452ybe.0.-pod-prod-gmail; Sat, 30 Jul 2022 04:35:45 -0700 (PDT) X-Received: by 2002:a05:6902:20a:b0:670:c563:9180 with SMTP id j10-20020a056902020a00b00670c5639180mr5441276ybs.401.1659180945640; Sat, 30 Jul 2022 04:35:45 -0700 (PDT) X-Original-Sender: MartinPostBerlin-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:31145 Archived-At: ------=_Part_2728_1012868585.1659180944989 Content-Type: multipart/alternative; boundary="----=_Part_2729_1137110327.1659180944989" ------=_Part_2729_1137110327.1659180944989 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Filter Maestros in this group, I couldn=E2=80=99t code myself out of a paper bag, so I have to ask for sup= port=20 here. I have a md > HTML use case where I need several types of block-level=20 elements (paragraphs, list items, figcaptions etc.) to have=20 (auto-generated) identifiers, for example derived from MD5 or CRC-32=20 checksum. Actually, I wouldn=E2=80=99t mind every block element having an i= d. (The idea is to make these IDs available as bookmarkable link targets, as= =20 seen in the headings of the Pandoc manual and may wikis.) 1. Can this be done using a (Lua) filter (that would have to skip=20 user-defined ids)? 2. Does one exist that I missed? 3. If not, would someone be interested in writing it? Because I=E2=80=99d = be happy=20 to support that (financially). I understand that this would break HTML validation for a document with=20 multiple identical block elements / IDs, but that=E2=80=99s something I can= live=20 with. Thank you. --=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/fe63819e-1816-4948-a675-a8fe85510e18n%40googlegroups.com. ------=_Part_2729_1137110327.1659180944989 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Filter Maestros in this group,

I couldn=E2=80=99t code myself o= ut of a paper bag, so I have to ask for support here.

I have a md &g= t; HTML use case where I need several types of block-level elements (paragr= aphs, list items, figcaptions etc.) to have (auto-generated) identifiers, f= or example derived from MD5 or CRC-32 checksum. Actually, I wouldn=E2=80=99= t mind every block element having an id.

(The idea is to make these = IDs available as bookmarkable link targets, as seen in the headings of the = Pandoc manual and may wikis.)

1.  Can this be done using a (Lua= ) filter (that would have to skip user-defined ids)?

2.  Does o= ne exist that I missed?

3.  If not, would someone be interested= in writing it? Because I=E2=80=99d be happy to support that (financially).=

I understand that this would break HTML validation for a docum= ent with multiple identical block elements / IDs, but that=E2=80=99s s= omething I can live with.

Thank you.

--
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/fe63819e-1816-4948-a675-a8fe85510e18n%40googlegroups.= com.
------=_Part_2729_1137110327.1659180944989-- ------=_Part_2728_1012868585.1659180944989--