From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: On markdown images Date: Sat, 1 May 2021 14:25:09 +0300 Message-ID: References: <87a6pfh1dj.fsf@zoho.eu> <875z03ffhm.fsf@zoho.eu> <87y2czc68z.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31591"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: help-gnu-emacs To: Yuri Khan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 01 13:34:11 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcnsx-00088D-1q for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 13:34:11 +0200 Original-Received: from localhost ([::1]:48688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcnsw-0000kV-5n for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 01 May 2021 07:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38862) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcnsc-0000k4-UW for help-gnu-emacs@gnu.org; Sat, 01 May 2021 07:33:50 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:47503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcnsa-0004BS-T3 for help-gnu-emacs@gnu.org; Sat, 01 May 2021 07:33:50 -0400 Original-Received: from localhost ([::ffff:154.231.162.22]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000046165.00000000608D3C9A.00004690; Sat, 01 May 2021 04:33:45 -0700 Mail-Followup-To: Yuri Khan , help-gnu-emacs Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129275 Archived-At: * Yuri Khan [2021-05-01 14:10]: > Width and height attributes, when their values are correct, do help > the browser lay out the page. It can reserve a known space before the > image gets downloaded and go on processing the rest of the page. > > When width and height are missing, the browser does not know how much > space to reserve, so, when it finally receives the image and finds out > its dimensions, it has to go back and re-layout everything from the > point of the image. > > Explicit width and height attributes are not the only way to mitigate > this. For example, one could specify image dimensions in CSS. Or just > redefine some images to be block elements and fit 100% of their > container width. That was it. Yet to specify image dimensions in CSS within Markdown context becomes difficult. If it is separate CSS, it would be tiresome, if it would be inline CSS, alright somehow, but none Markdown support that so far. One can always write HTML in Markdown documents, of course, but that does not help. Some pictures have different proportions and they may come up dynamically, I would not like displaying such with incorrect proportions. -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns Sign an open letter in support of Richard M. Stallman https://stallmansupport.org/ https://rms-support-letter.github.io/