Re: Workaround for uploading markdown on Windows

Yaron Sheffer <yaronf.ietf@gmail.com> Fri, 06 November 2020 18:17 UTC

Return-Path: <yaronf.ietf@gmail.com>
X-Original-To: wgchairs@ietfa.amsl.com
Delivered-To: wgchairs@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 93E6C3A0A8D for <wgchairs@ietfa.amsl.com>; Fri, 6 Nov 2020 10:17:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.195
X-Spam-Level:
X-Spam-Status: No, score=0.195 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, MALFORMED_FREEMAIL=2.292, MIME_QP_LONG_LINE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 3DkF-u_dqpk9 for <wgchairs@ietfa.amsl.com>; Fri, 6 Nov 2020 10:17:35 -0800 (PST)
Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0BC293A0A8C for <wgchairs@ietf.org>; Fri, 6 Nov 2020 10:17:35 -0800 (PST)
Received: by mail-wr1-x42a.google.com with SMTP id y12so2278024wrp.6 for <wgchairs@ietf.org>; Fri, 06 Nov 2020 10:17:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:date:subject:from:to:message-id:thread-topic:references :in-reply-to:mime-version:content-transfer-encoding; bh=Bfs4yuxCX5mwEMt0q1XdVdpkd5ZiQY6tHnU/1f4vsOw=; b=fQeyi/zCstTUF32aPhF74Be8TdBZ9CzEeBwEKEJiA/50tcu4sUp28wPhTY5KbMZa1Z pVZteOxqeqAoAiYtJbsQZ55rFRoH4WQEJHmOBY1MIYwZAAw2FwJLEkLbLLg+gxnAiPeH z6mESvEeyAzNj2e6APZkvlGvS8gNiw2RNBFJ6skl5I97tf8y/8/rbQbrawkHOzI9oV67 vTr6WZkj0lL7PvINOddpWlMeo70nzFW+2FNB5vvKCOyaymP/a5QNQkQ1sovEakdQ5QmS ob8m6+52D0yzEuWTBdekX/LToZU4PKbphbBFc/u5p0cnDc4ACZohVhp8SgBRvuVfppRs vYLg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:date:subject:from:to:message-id :thread-topic:references:in-reply-to:mime-version :content-transfer-encoding; bh=Bfs4yuxCX5mwEMt0q1XdVdpkd5ZiQY6tHnU/1f4vsOw=; b=rdnaRp1pVqcbvcg/Zu1ygILtcqSj5wKwufk0wGAOoiHqIfkdcYPNrEmlLXWv3FYQj/ tNPAHiWY/AEsf9/YYkNYUPQ9kLmkAzCe3iK+EbGyp3H4A7WJu+JKqIrjqtfezpO2Y/Rn EflyZ9gpRItyINCK3Iz7JJH4kCc88KckmHwemJmP1cL6PrWAMjMKbp6TiUfB3Gc1onfe 3pUzrnPEhAHzFOUmp+cHZvdrsBL/pLj6VFr6lEAcpgwivkjsH2VZai6qHbc0HF4ifxS3 ZvG9llgCMftaaIMNgduMBqgPBpdQXhrisP0PzcmIlTYHFkTOqxHRFtEVz+gOUTAlrhDg QgkA==
X-Gm-Message-State: AOAM530nMQbE+iaAEd+VSWtwOUW3pgYyWM7Enfg5RLgPNvKHIiJ7scde RNOeuI4y49DycepEfDd7plY=
X-Google-Smtp-Source: ABdhPJwpnwhLEdsBdQJbAj9PPJVzEBkdCfLCD1ZCbWPB5Hk6F9bR7Yv0gZ/pQkmviZnOZdrxb5Y4HQ==
X-Received: by 2002:a5d:69d1:: with SMTP id s17mr4234655wrw.77.1604686653389; Fri, 06 Nov 2020 10:17:33 -0800 (PST)
Received: from [192.168.68.107] (bzq-79-176-32-148.red.bezeqint.net. [79.176.32.148]) by smtp.gmail.com with ESMTPSA id t11sm3447613wmf.35.2020.11.06.10.17.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Nov 2020 10:17:32 -0800 (PST)
User-Agent: Microsoft-MacOutlook/16.42.20101102
Date: Fri, 06 Nov 2020 20:17:31 +0200
Subject: Re: Workaround for uploading markdown on Windows
From: Yaron Sheffer <yaronf.ietf@gmail.com>
To: Martin Thomson <mt@lowentropy.net>, wgchairs@ietf.org
Message-ID: <67AFEF39-5FA6-4D51-975C-985EC26C9489@gmail.com>
Thread-Topic: Workaround for uploading markdown on Windows
References: <47f61ecd-e83c-4685-b8c9-bdbc4c393f5d@www.fastmail.com>
In-Reply-To: <47f61ecd-e83c-4685-b8c9-bdbc4c393f5d@www.fastmail.com>
Mime-version: 1.0
Content-type: text/plain; charset="UTF-8"
Content-transfer-encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/wgchairs/35ypoXA-BfWlUSpvSsHnEg60V7c>
X-BeenThere: wgchairs@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Working Group Chairs <wgchairs.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/wgchairs>, <mailto:wgchairs-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wgchairs/>
List-Post: <mailto:wgchairs@ietf.org>
List-Help: <mailto:wgchairs-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/wgchairs>, <mailto:wgchairs-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 06 Nov 2020 18:17:37 -0000

I just failed to upload a markdown agenda from Firefox/Mac (some mime type problem I've seen before), but did it successfully on Linux.

Problem is, when I access the agenda link [1] from Firefox, I get a download of the original markdown file. From Chrome, the markdown text is rendered. I would expect that markdown to be rendered as HTML, that's kind of the whole point!

Thanks,
	Yaron

[1] https://www.ietf.org/proceedings/109/agenda/agenda-109-gnap-00


On 11/6/20, 07:36, "WGChairs on behalf of Martin Thomson" <wgchairs-bounces@ietf.org on behalf of mt@lowentropy.net> wrote:

    For anyone who has a markdown agenda or minutes to upload, you might find that datatracker rejects it for not being a supported media type.

    For those on Windows, rather than uploading as a .txt file, you can open regedit (I know) and create a key at "HKEY_CLASSES_ROOT\.md".  Then you can add a REG_SZ (that is, a String) value and assign it the value "text/markdown".

    As a .reg file:
    ~~~
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.md]
    "Content Type"="text/markdown"
    ~~~

    This worked for me.  Maybe some day Windows will learn about markdown on its own.