From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io0-f175.google.com (mail-io0-f175.google.com [209.85.223.175]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTP id 4f1da7b0 for ; Thu, 9 Mar 2017 02:27:05 -0500 (EST) Received: by mail-io0-f175.google.com with SMTP id f84so21915866ioj.0 for ; Wed, 08 Mar 2017 23:27:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cathet-us.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:in-reply-to:references:comments :mime-version:content-id:date:message-id; bh=KgMRUMBWDqESLVDFrN1KH5M1sl1AgQPqn4qosk7MfZw=; b=Tk1XKDJJ4wZSsyjzWpIbGfaQXcB4PuB5tlSjopeDIDoAI79H61Jl124M17x0Hc138Y hpwBIwaKZa8NLi6Ksa0GN9qkpkGehNHm5+t1rwp4DCwIe1br5frDUemQvIZ7YUA2yEww YtwZT+cjLYegTBfChpZlle01lnsWS+CclpF/mjTdzloDCsHJS4ARgjd4idNczFKWn+CQ jr9ILO+NPxwY3YKN3DwD/GqTf5mErqMjKFsef8hhtrTGPdlY7VWhswNpVr9UwhLakEFf /phZMb45Kddq2P6CqAqdyWk3zXsYETQoQhae95Q1nkyctMTdXP3hi24kWIMpnCCRvzd8 li0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :comments:mime-version:content-id:date:message-id; bh=KgMRUMBWDqESLVDFrN1KH5M1sl1AgQPqn4qosk7MfZw=; b=HhEsn2Ciu1Bq94oyPr3mHbYymTFnXMYQJjVEX04vDL+UZVBjpsEsTfcKARVeW3XsMH 3iMwxQWMzIcie/uD8PyIQcnwTPWWp5r+cNPKldycCnKeiTzIbap20ev8kZhXLo7XmkXN Y6dpEXi8nGwIUShH3LRPZrgatCbn8cXqdy9Buqnr+SsWeH3f4JTtRkz92gyy0xvI5jSZ U0YYMiWFL0JTOW2ImcUTykhRNPccB/djyxhSueQAZLjIxIFxnNlBictzFfhPzUAyRunY +Qewuc5mgoRzkGKso0iIaBUIO7XnYrd2j9KMy5GyjrGYk0ZjrJdaGOmPn25yAJy7y6XZ eBTg== X-Gm-Message-State: AMke39mluULTSUNAgYO/BTTy+C1RjF0lepwTFpw7b1uUWMmOgd+payNAqdsb7ED84yQM9Q== X-Received: by 10.107.178.137 with SMTP id b131mr9377785iof.50.1489044423026; Wed, 08 Mar 2017 23:27:03 -0800 (PST) Received: from cathet.us. (67-0-67-185.albq.qwest.net. [67.0.67.185]) by smtp.gmail.com with ESMTPSA id a129sm2661986ioe.15.2017.03.08.23.27.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 Mar 2017 23:27:02 -0800 (PST) Sender: "Anthony J. Bentley" Received: from cathet.us (localhost [127.0.0.1]) by cathet.us. (OpenSMTPD) with ESMTP id b0cfe546; Thu, 9 Mar 2017 00:27:00 -0700 (MST) From: "Anthony J. Bentley" To: Ingo Schwarze cc: tech@mdocml.bsd.lv Subject: Re: -Tmarkdown: don't wrap mailtos in <> In-reply-to: <20170309023235.GA76398@athene.usta.de> References: <34636.1489024072@cathet.us> <20170309023235.GA76398@athene.usta.de> Comments: In-reply-to Ingo Schwarze message dated "Thu, 09 Mar 2017 03:32:35 +0100." X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <43932.1489044420.1@cathet.us> Date: Thu, 09 Mar 2017 00:27:00 -0700 Message-ID: <48572.1489044420@cathet.us> Hi Ingo, Ingo Schwarze writes: > Your diff is very wrong and completely breaks .Mt hyperlinking. Indeed, you're right. In my defense, there are a couple of reasonable(?) factors that led to my misunderstanding here: - Markdown parsers I've encountered (and GitHub in particular) do hyperlink email addresses automatically without <>; I neglected to check the spec, as it never occurred to me that Markdown parsers might exist that don't do this. Mea culpa. - The regression test output mdoc/Aq/author.out_markdown gets misinterpreted in Markdown parsers, including try.commonmark.org, as gets passed through as an HTML tag. - The regression test mdoc/Mt/simple.in behaves differently between output formats: in -Thtml, "Mt ." is hyperlinked, and in -Tmarkdown, it is not, at least in CommonMark and GitHub. The second point seems particularly problematic: any Mt whose argument doesn't contain '@' seems to be passed through common Markdown parsers as an HTML tag. Like, say, .Aq Mt pre or .Aq Mt "link rel=stylesheet href=https://example.com/malicious.css" Is this something we should be worried about? Are there other macros a crafty manual could use to inject arbitrary HTML into Markdown output? -- Anthony J. Bentley -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv