From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/32326 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: help filtering links Date: Sun, 12 Mar 2023 20:36:54 +0000 Message-ID: References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28962"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCZ27W53TUFBB2XPXCQAMGQEYHUXILY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Mar 12 21:37:03 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lf1-f64.google.com ([209.85.167.64]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pbSRC-0007KZ-NL for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 12 Mar 2023 21:37:02 +0100 Original-Received: by mail-lf1-f64.google.com with SMTP id o23-20020a05651205d700b004cc7af49b05sf2956682lfo.10 for ; Sun, 12 Mar 2023 13:37:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1678653422; cv=pass; d=google.com; s=arc-20160816; b=r8L4RdE7tKdhTRKjaxB2NtwTYafvZcCDktCufz0zG8KOg/symE/CMkrGawQg9mhjbl 9iVhdxUNTt6yRUg4Ic3OHVQeLwCnlPkIipFlx4PYAVozNFbobRyQIGrahH+FjkL0hY6k YF60HJSsZcD8yAibbQrHAuyRYXPKv7jQX9LlDuFjUiRjkdCv6+13Seez/T8CapV91frG sz7IyrtX8spooer9UUIlQ290Vfp8eqKyMjm6EH2tGdikcz+kwgS2/1oSjQBUS6VZs13/ PjvlOcgsLvmuhYcAmID3kO9wz5zgzhoBat2v6lakNOsfRXNRdaQT9hbHcZFq6AUaqSyJ KT/w== 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 :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:dkim-signature; bh=cilmnWngaz0KlSN3E+S5e56GD454GCst54pZYgyfIoo=; b=Vx9jj4Sb63OOSfpa2Kg1QBggOGMfrhar6Q+iwxZlKcNkqv1zpIs+2Etsy3nHoVh4SU BRtPZVYhdELpgfGJ6D9uBQ6hsBvF1SEN2Thl7Y4h19UkY8ixA9+CPo3DtqnJKfKkOGqF VuwV4h0dWnE/LdW1pZ6ZPvvp9tWaZeu41upOkwlintwKIy1WDhLLgzohwZhP4FORE2oL 5brPWBGhlVzR0knKmpEMkkU6xOpDy2oTBH2/d7c/8L/ddeqQatJH9ijI+XUbiIaDtkDH PTQiXGCQB5mZruA6I8XEUiPmpwzXmxuJqPcKVhXdpkLFXzy6NHnqO8hk/q7OXn52DcVk aQqQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=OMSEQbwI; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1678653422; 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:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=cilmnWngaz0KlSN3E+S5e56GD454GCst54pZYgyfIoo=; b=Vx247FMdShXn5Ma6BS7OuoiIWijl7E04NGHRZ0WaAxKYr01X1XVD7tmVfcx38Q0xOD ed4fZ/1HoqycTnHuWgn/b59M2PxS0Sf+KubkH5Cq+8QXmR4j9nJzrM4CE/1k6xou/hgi 6pBzumqzJk1y4KMYEdXa9FjuckCdSVtsuPgiOAB3hGQQ47kSCYUeFsD945wxlUDllS8o VPw6oUOydJpct4bh6k0ggDCNYk9MYDQ4tTjEc8k67LLlx2Yv7WVJFv48zFQuJfGw3Rih X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678653422; 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:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:to:from:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=cilmnWngaz0KlSN3E+S5e56GD454GCst54pZYgyfIoo=; b=PVP3nqzkyw+Z2HahrmU8NIUszRNJp4rcVcZV6nBEXhD8vEakofnA1VMtoh3C1lPIOy 1yJ9pGpuryVuV5SAQs5ux7cFj2q4/B6ZOILVy2+yAO97ZOCwD/XBpshandyJTEgUtjeR RlfmrrfkkZcJiPzgj/CtVDVhkpqLqEZ453J6NrJbbDzg12haQ+GqYsPED2L4Hgh1jzps MfyvTK7+awP/a0w Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AO0yUKVkTDtCCE56Xu9s6Hk03r97awzJHQPiwZCBCjxSz1sQ2/l0uSdk Tc060EGIVLLluNynx6BJdJQ= X-Google-Smtp-Source: AK7set+f6HxPrIO2YzLGIlbNkiMEbXvfkNNzXrdJ8ycaoSxbhCX8ArvhP1QbqIVwvBBuRcgOQ8O7MQ== X-Received: by 2002:ac2:44a3:0:b0:4db:1aa4:fe02 with SMTP id c3-20020ac244a3000000b004db1aa4fe02mr10004252lfm.1.1678653422196; Sun, 12 Mar 2023 13:37:02 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:238d:b0:4db:5081:6ce7 with SMTP id c13-20020a056512238d00b004db50816ce7ls5247335lfv.1.-pod-prod-gmail; Sun, 12 Mar 2023 13:36:56 -0700 (PDT) X-Received: by 2002:a19:7419:0:b0:4c0:2ddc:4559 with SMTP id v25-20020a197419000000b004c02ddc4559mr8637581lfe.69.1678653416674; Sun, 12 Mar 2023 13:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678653416; cv=none; d=google.com; s=arc-20160816; b=nH/6Xy8z2MnlDbx1juNKOZGSiZfF2yoWuGHm+ImsPocTs6Gq49jEZWmnzmlcjvPRQ+ Xsz7XgVzB4mv3+U0ylK3WtBgR1wJA6ghum9GS90on+Xm+O+Pw4AzUNPD7n8t86abcQvn MFp69Du8FyFzz8UudR+wHRKfsU7zw9khq+dQjD90fXVjvXGgd/Ihc9BOUMV6SZiHCRt4 /CfeAtjCF5ocbKbcLfnf5V9ed8kdXkfJ7Y7zJZgT5ms3F/VtUjyp/eIGBPnSTT3CClQ4 EYtfvQ6kNxIsFXdn0PARAcjNke1ojKV3nP6G13WhjuuSNVCkDXSZovEgwsBe+XBZT7Lx G11Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:to:from:dkim-signature; bh=6Kv/7XuIhShdncLL2taTsOa771GsefXlNEG3Lj+4snQ=; b=KJcQyBHchjLxK8bj8QdCPhuo+TCf08chlYLV/lV2acqpZKXm5FGY7Vxfjsr/jb6Sq1 IqlNTDVWY9+7eGfwkws+sJR6TLyZOAAVp2i/xebKqB/Yt4TJEqiqAYl99bBEF+45yOM2 FuRG5fu63+jVHenuE1JyNVE4DuTlbigH8Dcvpy1NL5sPC+OiT6Fh/W7mzRouzGAjfwSz gpHismqNYdT9QdF3DbxeHsMDoqEaUTCHJIZpLYZPjFMvvzlP8j/U4Z3a3rBplRyoebxz 4Zu1Wmkr/N9tXJO30JuHdjYtd3xMu1/un9QI9GnjwL85se9g+/uT6Gi6eyYC2o+z5NKP qZ/w== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=OMSEQbwI; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch. [130.92.0.82]) by gmr-mx.google.com with ESMTPS id n12-20020a056512310c00b004dd8416c0d6si355889lfb.0.2023.03.12.13.36.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 13:36:56 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) client-ip=130.92.0.82; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-01.campus.unibe.ch [130.92.13.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id 3A644500091 for ; Sun, 12 Mar 2023 21:36:55 +0100 (CET) Original-Received: from aai-mail-04.campus.unibe.ch (130.92.13.169) by AAI-EDGE-01.campus.unibe.ch (130.92.13.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Sun, 12 Mar 2023 21:36:53 +0100 Original-Received: from aai-mail-03.campus.unibe.ch (130.92.13.41) by aai-mail-04.campus.unibe.ch (130.92.13.169) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P256) id 15.1.2507.21; Sun, 12 Mar 2023 21:36:54 +0100 Original-Received: from aai-mail-03.campus.unibe.ch ([172.18.73.17]) by aai-mail-03.campus.unibe.ch ([172.18.73.17]) with mapi id 15.01.2507.021; Sun, 12 Mar 2023 21:36:54 +0100 Thread-Topic: help filtering links Thread-Index: AQHZVQ16w5je+1W9+kGSX15e3XiY4q73mjkV In-Reply-To: Accept-Language: de-CH, en-US Content-Language: de-CH x-originating-ip: [172.18.72.2] X-Original-Sender: denis.maier-NSENcxR/0n0@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@unibe.ch header.s=mgwsel1 header.b=OMSEQbwI; spf=pass (google.com: domain of denis.maier-NSENcxR/0n0@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-NSENcxR/0n0@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:32326 Archived-At: I'm not sure, but I think these links don't end up as different elements in= the AST. What does pandoc -t native input.md give you (for input.md being your example)? Best Denis ________________________________________ Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org im A= uftrag von Pablo Rodr=C3=ADguez Gesendet: Sonntag, 12. M=C3=A4rz 2023 19:07:04 An: pandoc-discuss Betreff: help filtering links Dear list, I want to start to move from Markdown to CommonMark (extended for pandoc). I would like to be able to format three types of links, such as in: ``` # intro as said in [intro] [this is another link](https://another.link) ``` The first one would be an internal section link, the second one would be an autogenerated link. I think that a Lua filter could help to add a "section-link" class to the first kind of link and an "auto-link" class to the second kind of link. I=E2=80=99m afraid I have checked https://github.com/orgs/pandoc-ext/repositories (and even https://github.com/pandoc/lua-filters), but having no real coding experience, I don=E2=80=98t know how to write what I think it might be a relatively simple filter. Could anyone be so kind to help? Many thanks in advance, Pablo -- 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/b5007e61-547d-7661-530b-a3ef6ef19b20%40web.de. --=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/e6d9dbc3a8934a8286655114791f14aa%40unibe.ch.