Re: [apps-discuss] New I-D: text/markdown Media Type - draft-seantek-text-markdown-media-type-00

Phillip Hallam-Baker <phill@hallambaker.com> Thu, 10 July 2014 15:22 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: apps-discuss@ietfa.amsl.com
Delivered-To: apps-discuss@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 08FFA1A0A8D for <apps-discuss@ietfa.amsl.com>; Thu, 10 Jul 2014 08:22:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level:
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kmHbo6wnxKGU for <apps-discuss@ietfa.amsl.com>; Thu, 10 Jul 2014 08:22:48 -0700 (PDT)
Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1F7961A0AB2 for <apps-discuss@ietf.org>; Thu, 10 Jul 2014 08:22:47 -0700 (PDT)
Received: by mail-wi0-f181.google.com with SMTP id bs8so586696wib.2 for <apps-discuss@ietf.org>; Thu, 10 Jul 2014 08:22:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=j6DLQZ6sLCfH77TO1DXdt3EwKftk/tc1w7VeY5wAZCI=; b=QXzvhsCCWmecrpgZE6acSMxEtqvYdxeT0yytFqxQpBlUJ6wzv+tWwCnk4wiv+ypNiy j4/m0XHg3gqn0PPbI9mVsGtUex+1njrmIIRNoZWVFbp/40oLSGEGAWVyrd3Ab5TypuZ0 i5Sr+qpYTmRoVjiTh6q1m0nwl8HoZa7tXN3O31I0m0DMh6Cwzd4JRb8PHEzKDtD1DECm scAyo5CoYyLLZ2PLZFy3oV84DDj1yusBbE8zZj0PG0Ar7tcQyYxyior0kqfL4W/V5M8r ER4t2IVDEzf5D5BEDDe4s767GQzO2X1VDSSsaDy3UMzCMKDN4+4nbeCzZ1UqV9cjiDKc bCSQ==
MIME-Version: 1.0
X-Received: by 10.180.210.239 with SMTP id mx15mr19758324wic.65.1405005765364; Thu, 10 Jul 2014 08:22:45 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.194.123.167 with HTTP; Thu, 10 Jul 2014 08:22:45 -0700 (PDT)
In-Reply-To: <53BE5A14.9020305@seantek.com>
References: <53BBF0F0.9000006@seantek.com> <53BBFBA2.5090801@berkeley.edu> <53BC71C1.5080103@seantek.com> <40fb5c2d6eae4c5fbd6243db75f85d69@BL2PR02MB307.namprd02.prod.outlook.com> <389FC4D0-4A4F-4F2E-9BDE-83DA8C8E5710@mnot.net> <CABP7RbeF4RJiKhF=M4iA6wr_sU132oa5qz2yZoSAGDe0T=hhpA@mail.gmail.com> <2982B8C0-E4D4-4259-83CC-403E184F364B@mnot.net> <01P9YXHRLNQM0049PU@mauve.mrochek.com> <53BD8FB4.7050807@dcrocker.net> <01P9Z5KF3YNU0049PU@mauve.mrochek.com> <3FCE1559-219D-4415-B2E9-9CBA2404C32D@mnot.net> <53BE5A14.9020305@seantek.com>
Date: Thu, 10 Jul 2014 11:22:45 -0400
X-Google-Sender-Auth: GisyawCOjdHHlVAWgufQ9IKyfEs
Message-ID: <CAMm+LwhR+rRWXNd5Gxc3d4C_eF-+Tvv6MeKumkU=3ACiSZX1tg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Sean Leonard <dev+ietf@seantek.com>
Content-Type: multipart/alternative; boundary="001a11c32db28d583a04fdd86545"
Archived-At: http://mailarchive.ietf.org/arch/msg/apps-discuss/c5BSgSUkOcm26KfGBaiWaA1vhBQ
Cc: General discussion of application-layer protocols <apps-discuss@ietf.org>
Subject: Re: [apps-discuss] New I-D: text/markdown Media Type - draft-seantek-text-markdown-media-type-00
X-BeenThere: apps-discuss@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion of application-layer protocols <apps-discuss.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/apps-discuss/>
List-Post: <mailto:apps-discuss@ietf.org>
List-Help: <mailto:apps-discuss-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/apps-discuss>, <mailto:apps-discuss-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Jul 2014 15:22:53 -0000

I predict that when you look at the variants they will divide up into one
set that is based on some sort of FSR or Lexer and the other being based on
pattern matching.

While these approaches are close in theory, there are very important
differences in practice. Pattern matching tends to be done without regard
for quoting or escape mechanisms and make assumptions about the well
formedness of the text.

There is a school of HTTP header 'parsing' that just scans for the text
sequences of interest. So if someone puts in a header like the following,
chaos ensues:

X-Ignore: Content-Length: 103
Content-Length: 2048

Of course scanning for "\r\nContent-Length:" would not fall into this trap.
But folk tend not to think that way.