From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/29171 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: MarLinn Newsgroups: gmane.text.pandoc Subject: Re: Should the HTML writer generate empty '' elements? Date: Sun, 5 Sep 2021 00:49:33 +0200 Message-ID: <543ae04c-c5ef-99c3-cff7-15068893b3e4@gmail.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------70AC9782F3CFF12BC343B476" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux i686; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDRIBCHEU4BRBAHQZ6EQMGQEQJUAHJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun Sep 05 00:49:40 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f192.google.com ([209.85.208.192]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mMeTk-0006rY-30 for gtp-pandoc-discuss@m.gmane-mx.org; Sun, 05 Sep 2021 00:49:40 +0200 Original-Received: by mail-lj1-f192.google.com with SMTP id s15-20020a2eb8cf000000b001cbf358ed4esf1039877ljp.14 for ; Sat, 04 Sep 2021 15:49:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1630795779; cv=pass; d=google.com; s=arc-20160816; b=CBTc4HV3s85taXaGYB1fsT+xplAcoVh5rxk7b3ZKedTH+wfEqybEs2fDoqIP4rX5ot 4lEMiHGFODJ1DgYq0y7qEdLIPQ/8wzpViNBFfsWU93DMA1QnX1GQkWmZdwpcsGFhlHoJ ojwONxBVNXrTg/Ehe3OkXgFnK38PhoHnR63Y6JNv0grqEloLMWRyg9LYrN9LvQcNO8rg qQXeIHe4B/IpzElbtZb/pW7HGY122vjqs0W5e1rw/VuV8yKOU/rGtyjCbNCXQyW6Hu52 BBQzOv/LuH5zyiceOh6+W2E298MFEAeVWYMJDqG7tb9gQ6RtTzeaZQyQHoDDm4Yykcyu wGRQ== 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:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :to:subject:sender:dkim-signature:dkim-signature; bh=eH8R36Qpy+JWMiK/L0Z6qEFYpDznothjCadJvves4dw=; b=C5j0P0AxI+fMNRwMO+LLXlSHa5++TdsVx2b2feS/ETz8PVE3bEnltwWuNOO9Nlxrin YUTia+UIGAWRSP0Y92eOmqbSPtTV5jbUZpY/mg2MKsfJvaLeUrEnhPiiVRu/zqoQbnjR XAJuPwkc/OyI98Ir32BI5rTd7R8jGFgWtELPGwLTv6WdqQO/wSf/B73uEOnq4cKbwzfQ PWYtjvYyBZbYnHcbntYbSc5TGHfj371brZgp2q/YzQqTJEIGsTV8ZD1tksTnkYfclAT9 y5+J2vIBoBf5Lm0D8g9IOpiKwGuoJOgI9Ps53Z7D/TE2x+JFC0ogt6CqeIxsIWZ0AMFq rB7w== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nfCVXHqI; spf=pass (google.com: domain of monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:subject:to:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language: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=eH8R36Qpy+JWMiK/L0Z6qEFYpDznothjCadJvves4dw=; b=OnA5xt5S1nRTTUNuq4yrnKzavkTi4XCrPppHyFUpBDtHuTbUIrfHwx6sHHjZvspvrP GW/AFjNiGsSmnmGDYxYNRA0oA4JS8mtNdlEdLfGwIwHF2ZvZ+/DUGovGTk54ZHHeTDVl FnL/3cVZAmmVOaeEWrXEMgXyMkyKSkNyr+tUZ/ZM9Tb9NWT8nUcrLXonwrFkhi+8SazL JCFFdvvcnPjK2ftWR9RS2Y94Zw1phM6iWQ7X+exoqjXc16Zlz24xtD623JJOoexDlVxe TCHGxNCQzDwSVu9lCxCUk0z9nyUIoi7cA1oOz9UcIgxDMxnAijln5+rZQLOIm6pN+2cn PrLw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language: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=eH8R36Qpy+JWMiK/L0Z6qEFYpDznothjCadJvves4dw=; b=BoNNpBCLmkVIFvkB28KeVTR1UjUiWDA/t/E8Q0UT5JUKzzELEKCbKmj6pvVine/Dyk Y7zA3YfLttg2VwtbWXJGcqoQ85t7018W93UBWQRHH83OEiCdD1+7Cd1o2nhktjMP81QG UIOGRO6H7ngzqI/5wm8liWtTCOPmOOJFowsmFmkAl6ao2Ozns81sBpYDWujP57fPwuil 8pEFFOU9YZ4PAR0cYnk15F0f1FIhZafCLSs+mfSvCAYbMNm4c9+qLjPRkRm4VBJfFm3v XlzG3PVXJZi9hqH0jbwpUcqN/u5+e7HAqFaNgUXleaI0jqX3YlWsSBEK1iFRRlZ9HHLn BRFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:subject:to:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :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=eH8R36Qpy+JWMiK/L0Z6qEFYpDznothjCadJvves4dw=; b=GqsMbR+m6dofgDOLGBfJCUXAjDq3vSqOytZjuoQh+TjMQE5iP06miV9mLVb09biAPm ubmwFzNDLowfRB34MN3tMArOSssj0URd4OynO7wDUyKy9F45JcY13F4dq6d7aduAu4XP x4898Nzs/5BKDCpjLq83JRdAd7PuUnEnbwtRlCtyeLSt55Las9Qe8INmrjgXCWkT5BPB SupP/vk22iuNiDKq84vQTcDxG7Cb8Yr97D7oQlXX4pOutZWK01/gPurwViKpy21ZsKfz MFi9wvxWw8V3/awhxrtP5Aeku1KFLFSqe6O+asXeJvG9y3JvRnOLyWvSPe122RAOynMH Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533u1RL4PXwbqcZBE235735fr+PUeBzq6ZYxDOHkNjBRELLMOIUG Q4+crXcqtxa81rCCJ5ffTsQ= X-Google-Smtp-Source: ABdhPJxH2Znz0IwFBwVLymD6/WmLxqhjZQN39ZJvUBe/vwTQUF6Md71jsEuy2YKnFHDfbkYAj00t+g== X-Received: by 2002:a2e:3514:: with SMTP id z20mr4531584ljz.459.1630795779609; Sat, 04 Sep 2021 15:49:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6512:3ba:: with SMTP id v26ls1224827lfp.3.gmail; Sat, 04 Sep 2021 15:49:35 -0700 (PDT) X-Received: by 2002:a19:dc47:: with SMTP id f7mr4242119lfj.71.1630795775859; Sat, 04 Sep 2021 15:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630795775; cv=none; d=google.com; s=arc-20160816; b=wXEF85DYN/2uKpXMkRiYCEkpfP4EIprM30QQh+dIbARqaPr9EcGiTXBOiYQghSph4v lIouBQS2AFJ0d2e59vgL4lANw2Dm26doeXzv/aeheDVaWi2XJkEarSU31EwrEIW23Bam dA1mP/1QRJClo/8m6wwOCClYBNtv1Eo3o4VUZnMBM6sjSZArBovnjhluGEDgz49/eBcw QqMWBXW0KyCBdD4xBAYcI5wesxRC5SvLUuJXR2TcMj056IyemBNrAQiKyao2RYS92WgQ QsVGacv9/dGp0cxRBv3X3jJp4/+peAogGtIEPZuJA79taIG+MO7wFooRtNF3n9zvf1Y4 JEWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=0czTdqGH6LjAjFJXXwYrx6x2LILzvxCRx/y6jIbv18E=; b=n4Tw+jqnGa4Klk1h+AJHbE1PjRdGVp4vpcghNH8xxmAYWDGXUM9hZjdlCGHKGTFVVl XngVcT84VpBun7EK0qUy2Qb1v2tZtf64OwwwyLP51DPoG2xgM4aGiADCda0u/lor+4g2 Yk27drMzur3BHE4ReiPvoDQkL16EkK+vCaSvK/eRF3aCrwtc7fBoa9Vyqv60h5JSCl4P n46uzVGaEledREfJB1aXenJcP6Gu8jqsrRVTnvSiTCPDISTbjqbkO1WDF4iXdkuin4I0 lXOtEhwOGCdiDV+/MkYoQemHKCjuuy70SlK6exaTbQRn0kYUnSV9ByARTHkxuRvfhewE VsZQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nfCVXHqI; spf=pass (google.com: domain of monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com. [2a00:1450:4864:20::330]) by gmr-mx.google.com with ESMTPS id f16si181579ljj.3.2021.09.04.15.49.35 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Sep 2021 15:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::330 as permitted sender) client-ip=2a00:1450:4864:20::330; Original-Received: by mail-wm1-x330.google.com with SMTP id g138so1825215wmg.4 for ; Sat, 04 Sep 2021 15:49:35 -0700 (PDT) X-Received: by 2002:a05:600c:a08:: with SMTP id z8mr4756742wmp.52.1630795775415; Sat, 04 Sep 2021 15:49:35 -0700 (PDT) Original-Received: from ?IPv6:2a0c:d242:3603:400:be5f:f4ff:fe06:b3d3? ([2a0c:d242:3603:400:be5f:f4ff:fe06:b3d3]) by smtp.gmail.com with ESMTPSA id n14sm3212082wrx.10.2021.09.04.15.49.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 04 Sep 2021 15:49:34 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-Original-Sender: monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nfCVXHqI; spf=pass (google.com: domain of monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2a00:1450:4864:20::330 as permitted sender) smtp.mailfrom=monkleyon-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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:29171 Archived-At: This is a multi-part message in MIME format. --------------70AC9782F3CFF12BC343B476 Content-Type: text/plain; charset="UTF-8"; format=flowed Possible use cases for an empty span that I can think of off the top of my hat: * Clearfix * As a placeholder that will be filled/replaced by javascript * As a placeholder that will be filled/replaced by a pandoc filter * As an anchor for before/after pseudoelements * As a container for a background-image * As a piece in some CSS trickery to get fancy effects without images * To have the right count of elements for some table-like presentation * Because of symmetry with some other structure where there is content inside the span There's probably a lot more, these are just some cases I thought of. Is an empty span always the /best/ solution to these problems? Probably not. But sometimes it is. The most relevant as it relates to pandoc is probably the third one: in a pandoc filter. Because of that I would not want to see this feature be removed. Now, should the span be self-closing? That's a different question. I suspect that /that's/ the main reason for many/all of the errors you're seeing, not the pure empty-ness. So that might be something worth changing. But as you're saying, that's a Hakyll problem, not a Pandoc problem. Cheers. -- 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/543ae04c-c5ef-99c3-cff7-15068893b3e4%40gmail.com. --------------70AC9782F3CFF12BC343B476 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Possible use cases for an empty span that I can think of off the top of my hat:

  • Clearfix
  • As a placeholder that will be filled/replaced by javascript
  • As a placeholder that will be filled/replaced by a pandoc filter
  • As an anchor for before/after pseudoelements
  • As a container for a background-image
  • As a piece in some CSS trickery to get fancy effects without images
  • To have the right count of elements for some table-like presentation
  • Because of symmetry with some other structure where there is content inside the span

There's probably a lot more, these are just some cases I thought of. Is an empty span always the best solution to these problems? Probably not. But sometimes it is.

The most relevant as it relates to pandoc is probably the third one: in a pandoc filter. Because of that I would not want to see this feature be removed.

Now, should the span be self-closing? That's a different question. I suspect that that's the main reason for many/all of the errors you're seeing, not the pure empty-ness. So that might be something worth changing. But as you're saying, that's a Hakyll problem, not a Pandoc problem.


Cheers.

--
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/p= andoc-discuss/543ae04c-c5ef-99c3-cff7-15068893b3e4%40gmail.com.
--------------70AC9782F3CFF12BC343B476--