From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/23216 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Ken Dow Newsgroups: gmane.text.pandoc Subject: Replace Str with HTML in Lua Filter Date: Fri, 9 Aug 2019 12:28:29 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_862_1546768675.1565378909995" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="98171"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD7LJ7PVSXEJB62ECDPZFN7KAUNAIF22OC3A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Aug 09 21:28:33 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hwAYz-000PQf-A6 for gtp-pandoc-discuss@m.gmane.org; Fri, 09 Aug 2019 21:28:33 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id b25sf70659895otp.12 for ; Fri, 09 Aug 2019 12:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=i3M8bJb1VnnNa+OMN/QLzdZMilsOwbiqPhNnm3z4BFo=; b=GKSuVTH0uhixSAyvIOuJMfgVK1lIQsMWYMV6FY5VQZIrzxykhz/+0SOeGwXNU6+E2z ycFsDUPiYyatPU/8qu1dQx1Fc0OObZ+wUxqUPZpTf3jydbXtCsEdg5AlLaGHp/axzKTX 7lJ866AMUlcHp+ZICwppz+FWiSM16dwMWLZbgWMieSUclPZtr8Lix4/ilyHKfY2h/bZ3 0vv5R0oNg/Ql6gUUhhcJ6CeI8OgflbHooK285fcTzX3kikUYw5meDrvbHtup/1JqsxDd VM26QBKTRZPQooBuv6yRlvn5FW6k5rdfvTEetNiMHuDtQInzV19rVeEzd9HwcreGFOY5 AByg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=i3M8bJb1VnnNa+OMN/QLzdZMilsOwbiqPhNnm3z4BFo=; b=X+a4rF2cPpZ4tQS0Xl2O88QgLbx1I3aI300zFcojsBT7DbWpbFEmWymUobTRW+CEAw YqFXNDwQ8/qcYXTKJtWecSp2OkiIvi3hTth/3a5mp/BK/tVnLVr5M+yyk0crld5NmpIW SURfDeuawrim2WL3Pbb3nEDuLr/Ub9MwOxJ+ZCOYhhHJw1E/l+c2Df+LkbwAA9W+6tCv lgJyEAX6eeuC2m/7kvv5sDw9R4BeijcD3wa5oHRapaQ2bNf11Ygrp3sex3wrq/kZMEuh lHpj/sFV1HVbmb3yjjAXwZ+kRy69CIXKJJZ+EquNWzK1NyVwpmQCFeNoDz1UsZ+joPYp fQew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=i3M8bJb1VnnNa+OMN/QLzdZMilsOwbiqPhNnm3z4BFo=; b=tzfRu/KhIoJqjR74DRZOTkZCTK+t4AZgLO5Lb93P1h7Qpihk13mQPATiMvSAiAPUWx C++30wAFNHuxt/qnrc54oSjNAubZmzbbGQuw24ueWkvuhwmbEIYnLbsgwsjkYRVHbdzK xFgjWKntz8BOlnXjlUAo5wxYvi3WjgSKXR3poUOS5nmk6Ep/D5TAWukeF+ltpMot0LF5 QEGmrVaMAxksCI0LJjckMsxTGOgaMnddFEerX4MNVm7du3IBWM1kNPgQm+HM4CGYK5qK 7pDMz8tvRPP7N8oTKaUZkVblF+zspStUGOzi9fq++VpZY258eEZQ6AXJhghy/CYBxPI9 oBwg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAXHCaE1HcgDsHq1nt5XkkKVEFyvba8+b+kZYck9uWFl/QDevoq5 aENfL2C09tDMm81Dkq4Kuuc= X-Google-Smtp-Source: APXvYqwZ02zFhdnl8YFui+jqB+/VmrNw2Gm6hLBn7e0L6bMO+99pO1y/3Qp/UZ92J7vIpHEP6yevpw== X-Received: by 2002:aca:4306:: with SMTP id q6mr7448586oia.39.1565378911898; Fri, 09 Aug 2019 12:28:31 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:3f62:: with SMTP id m89ls74032otc.1.gmail; Fri, 09 Aug 2019 12:28:30 -0700 (PDT) X-Received: by 2002:a9d:7003:: with SMTP id k3mr20010276otj.28.1565378910890; Fri, 09 Aug 2019 12:28:30 -0700 (PDT) X-Original-Sender: thekenshow-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.org gmane.text.pandoc:23216 Archived-At: ------=_Part_862_1546768675.1565378909995 Content-Type: multipart/alternative; boundary="----=_Part_863_1333175612.1565378909996" ------=_Part_863_1333175612.1565378909996 Content-Type: text/plain; charset="UTF-8" My DOCX source document, which is being converted to HTML, uses some Google Material fonts. What shows up in the AST are values like Str "\8211" I'd like to find and replace those to produce something like the following HTML: face Is that possible and if so, how? -- 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/abe5ae45-2ad8-419b-a282-5b5e1b4fcda1%40googlegroups.com. ------=_Part_863_1333175612.1565378909996 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My DOCX source document, which is being converted to HTML,= uses some Google Material fonts. What shows up in the AST are values like<= br>
Str "\8211&= quot;
<= /span>

I'd like to find and= replace those to produce something like the following HTML:

=
<i <= /span>class=3D"material-icons&qu= ot;>face</i>

Is that possible and if so, how?

--
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/abe5ae45-2ad8-419b-a282-5b5e1b4fcda1%40googlegroups.co= m.
------=_Part_863_1333175612.1565378909996-- ------=_Part_862_1546768675.1565378909995--