From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30986 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Albert Krewinkel Newsgroups: gmane.text.pandoc Subject: Filter for inline syntax extensions Date: Sat, 16 Jul 2022 10:57:30 +0200 Message-ID: <87edyle8l2.fsf@zeitkraut.de> 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="4640"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCZJF7XJTILRBD74ZGLAMGQEKYLRQJA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat Jul 16 11:00:03 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ua1-f60.google.com ([209.85.222.60]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oCdec-00010i-Qd for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 16 Jul 2022 11:00:02 +0200 Original-Received: by mail-ua1-f60.google.com with SMTP id u16-20020ab04590000000b00383d49e1230sf1523840uau.17 for ; Sat, 16 Jul 2022 02:00:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1657962001; cv=pass; d=google.com; s=arc-20160816; b=bnSIGNpJmxkWC6MUCUUmEIqtUupMeloxpiq68dOklWwnSpV3efSdh0ScjIfXpQiR8D csoGmz/bg+u1f9TraqOexDbXzoKxbRfM4SxTsv7H+FdtaJDMI1Hu8tz7chhXYbxXiFuD yzlZtwWN2ziKj1aP/apcJ7itdg72S76u6YecPc9JVAnaA2qJKD6jY3Hfgf3h23uj7+j5 Fy5Rc9A7Qunadab79bCbNbhHZrCnktBVJHn6eCGk2AdrbgJRKS5yTGcFwV1pk3llme6h KEdFyMpGrTVlFgYBr4Bq/qZnahYlGntO79A5wJZI7lA4kmdkEICsp7MkYYesJsOBGMeK hHrQ== 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:subject:to:from:sender:dkim-signature; bh=+jyYZ1NG+Is6GTJeDeRIm7uT1aoM0jtHcqeJLhn9GeM=; b=Cpcc6iv4knm57uxbxlcRaRGT4YHsuQTq88QVxGdEkLLQ82QLNmnfYdel4jqUSf1CLd 9Wx6jNnzcy/NtOovMYv56Dk9i0gB0ZDNGU3QMPAjgOWx+xBFOl8EfclIPGY6m2u0o0s/ R5Jq7hX+DL5OS/nUBjNxuWqvfNC/87Rge4bR4VjuTzruk5Etzg8D7QzZyTzkmxdC4C97 eQjCPnzYbZbVEYY8lQdVE7e0iRbX4HukvAYJjvP75+yX9ghigKhPdhTOL7c3N14Afsb9 5kEAvisJznxzP/31oF+4f++erLmAn5X1Bc9eeFbmubKEZEpvscDr/ayieVfgOWzuQSUO pgug== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 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=20210112; h=sender:from:to:subject: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=+jyYZ1NG+Is6GTJeDeRIm7uT1aoM0jtHcqeJLhn9GeM=; b=M3F44x1Tn2svbMnuf6OGKc1zu4eK7lUGQFoqd7O0jRmeLnoxLRWgXKtWDoI3OBf5jy oe/3wZ6fXY0XjhD4kTSvxE5EXvAJISiXaPaCWtb9IBxvdD0eR52OTn8xXkkuMivnIAM3 ZtgitcDdWutxHV/M/44FU5NCPfNat3MV4RGCbT5WbQWx80aDZJGYhUhfoqBL9e37KN7F s2eS2XlO72NxTU8oVqxRMnvht6zSQCMOaeYdiRoaCp+XDKtaKDnMrU9SziA1B5AWNr8U Z2mbC7BHtw0vfO2pMttbUU89WcS992AnS9+yyl4CYn5pG3iriF1lMQfSMvj3+57u9BUK mKTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:from:to:subject: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=+jyYZ1NG+Is6GTJeDeRIm7uT1aoM0jtHcqeJLhn9GeM=; b=NTc7bRKVU/25cAPvTlPV8Q6sSmgnJKN8UfxLe/ArtGoXI+JmNUglhfmHETdiOk0OEX UAG9mzZCugKS4uWEobje5KkPcuXHlA8yUiqICj+SOgqIraxPNZM13qXX+pWTpkZxNDu6 u3iXfWto+TaVyAU0ZIjWFnW4LRAZ5Z2C/7QLlwxU2rjPPCqJp8938NTWQqcdWzETfLoy WS2EuvsBTdli1h0pojb50i2Z/5hOSVnuaawm1N0v+UBrT27U/0TwSOOo0fQEb6bblG0G WOML06kH4I6WEyjw0ex+1N2tI8gn9kUKYyEz0Qou6cFzkNmN8zcr5sAIkp+U4qDrbkN6 ByoQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AJIora9mbjZcLzexAl7UjCg/RI+GcNt4YmJVAOvSNhwwkrFTU3CaWEwz XszSd7bRpL+dmwfsaF2gsvw= X-Google-Smtp-Source: AGRyM1tD28MO/V6nvxULsFVdRmYg9RBer4USUleAyBiu6Thrju+dXSWeZYLKnJOD9SyiLLtK0krEZQ== X-Received: by 2002:ac5:c346:0:b0:374:a4f8:4c5b with SMTP id l6-20020ac5c346000000b00374a4f84c5bmr6927528vkk.19.1657962001813; Sat, 16 Jul 2022 02:00:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6102:23cd:b0:357:31f1:b63f with SMTP id x13-20020a05610223cd00b0035731f1b63fls774665vsr.6.-pod-prod-gmail; Sat, 16 Jul 2022 01:59:58 -0700 (PDT) X-Received: by 2002:a05:6102:381:b0:357:a112:adc7 with SMTP id m1-20020a056102038100b00357a112adc7mr3993722vsq.38.1657961998599; Sat, 16 Jul 2022 01:59:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657961998; cv=none; d=google.com; s=arc-20160816; b=FZmPKjxFgAYv6nzGC3N8+T7CqtaXw3gb1r/LlrYymTVu4KPiHIcEkniI0R6UuyvJ9r ctzXkR5ZFDm4ryURz78X9XwnGDhpu7CNLC0vDGT6NIpAe05gXr510/0KUSMQKqAUtd4x GeGCBlAHAjyH7cxrl82DEUfV3f/qltgEYFPfhDbzIG1IUufNyfEpe5o8/6rlpaXQ5dMK R8RJ4GLCUkQBVRzoSeV/skxQGD1lzWXgDzToqOkM1n2KNFQo1h1j573T4GrEh2uhsVv9 ELgrddW1sJdcS5NpCL5zIel//tkmraV4iJbeEx6J2NF0qvhtN+BDP75HKcMpIJ4ctmXj bl4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:to:from; bh=fvyxwWK6DM10rKTfdeMiDga2mn7b0r97vaYZCOSOzzg=; b=gEhg+2j0K+OG2s6cOEOJpmoiz6TeRKm3oCZYFo8MFr+476l94pECD3JMvQGXANNt+v UdvAXJjMFFFptcQpDGk4G13mfxOdKQes7V3R/5q1iadXdxjOdZDJEeo8dg5vIeaG9gRA sGVrwFi22b4NifCI8xesGozCFKrSdOFkUuh3nOqmSgeUfLjmfgMUtwn5oq4eFYu7CSJZ AFGJhOlIMPoosETIOQOe7mzsbuF+BYhVwaDyFA3WMEjuHl6qgflIRUH9Dy/UiarPBEwa 9iaQ8FRR6StnlFMpP2DGNmecJrFKcfNcezZ5XjEBY836JUchvX2Af4qnCZZp+4UaxCUv rmaA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) smtp.mailfrom=albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org Original-Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org. [2001:67c:2050:0:465::201]) by gmr-mx.google.com with ESMTPS id 132-20020a1f188a000000b003700a12ecbcsi305440vky.5.2022.07.16.01.59.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Jul 2022 01:59:58 -0700 (PDT) Received-SPF: pass (google.com: domain of albert+pandoc-9EawChwDxG8hFhg+JK9F0w@public.gmane.org designates 2001:67c:2050:0:465::201 as permitted sender) client-ip=2001:67c:2050:0:465::201; Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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-201.mailbox.org (Postfix) with ESMTPS id 4LlMcV4Pjgz9sSP for ; Sat, 16 Jul 2022 10:59:54 +0200 (CEST) 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 2001:67c:2050:0:465::201 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:30986 Archived-At: I've been playing around with a filter that adds additional markup syntax. In my example it uses `==highlight==` to add highlighted text. Highlighted (`mark`ed) text is only supported with HTML output, support for other formats would need some extra work. The filter comes with all the downsides of adding a second parsing step, but it works well in most cases. It can also be modified to support different markup. -- Albert Krewinkel GPG: 8eed e3e2 e8c5 6f18 81fe e836 388d c0b2 1f63 1124