From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iC67KYFnJmV0VQEAauVa8A:P1 (envelope-from ) for ; Wed, 11 Oct 2023 11:14:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iC67KYFnJmV0VQEAauVa8A (envelope-from ) for ; Wed, 11 Oct 2023 11:14:41 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 390CF6A5F1 for ; Wed, 11 Oct 2023 11:14:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oevky3ql; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697015681; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=maW/wrwD85rn0joEI6dgLROe5os8qy41O3mSdGgM1/4=; b=tKoeidcILiMWUsAX8Wl5FqA47ycSrADyoUSLZ7bN+ShppobHjcQQcfADAfJj30ARySpxyZ y+B2pHUA5uZAPUBJgf27R5B72yx8svt0HrScfWcPIdAzGWcc5H7z1ni8c3t9oFPHBT+oy+ bf4U9NjymhHZrePsUPxxo1CvnlYuN0Txd5KrcpB0kCoaEY0e4IAsNRV3zYU/Bc42IGEwGz gVvgvQiXcDBg8ARkBeutVdXPRvc6DlYXGUw+/H70fx0RhJDMrZPVSHO2HS9AEXxmDsow2Q njMxER/EdM2lHURJzFjDZmpS7DIq0cbD3R4J/my3ahwVmXOXR0ujjG2+3G/epw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697015681; a=rsa-sha256; cv=none; b=VevwOSDuHzP+gYLFDmI/GAXcuNh3Ps4+F5NNsdCPjZSdkQUJdzT0o7UD6fbLpq1qkEvKNh kB1kGoQYchVZ8ENyQtU/OTpekUTyKeSUpE9U3vTL3iC7316o9qTKQ3t+itFURk6shkHqSN 7QmpbqeVPAaQ1p/df6aoqy5V/PvCfpYTH4TbJT9oW8kDohPfbWInIEzuKZ6WVRTGljo3Ms k6hXrYvXQ5HH5hKOgzwYbXhq/9efiZuOEtkIReuZ6iVAI2rZv8Fyod4PSox2+5/+SR9BSi iJ/ATWIxvWW/Vs/GWTqYfjnUCEOqTrsRIG1P25anb6U+aGt5RFbrY70KdBInMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=oevky3ql; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqVI5-0004ry-Mo; Wed, 11 Oct 2023 05:14:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqVI3-0004rR-M9 for emacs-orgmode@gnu.org; Wed, 11 Oct 2023 05:14:03 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqVI1-00031F-7N for emacs-orgmode@gnu.org; Wed, 11 Oct 2023 05:14:02 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7D212240103 for ; Wed, 11 Oct 2023 11:13:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697015638; bh=k9XFnp2OEluRJluk+/tRL5fiNlu7hWSX4JnG3iIkKAc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=oevky3qlu6vooTs6R2d3uTtEKgL+1dduGI/hEQUA1vi8fScRCTdaLljbHnhJrlPYG IDW+D/UD3K7h3vG2RZefSnHyD7lNUnr3FTp4odp0xScq0eXShAcTgiyTZxArZthdb8 BlQTsW6S9yBhX1rkSdS7JQ01VbbbxxvlrAHbnnt8CK9QTBz4Ebhaxhnn7XGru7yuEH Cdr9Hq0hKJfoT5NGXithfIFaJLoRf+TOEdjDkxWu99kNzm/OjdyzaD4WIGrB4SJ3Fm 71KSz7B/gsX3js63tTIgideKNwkEIx4DAICAw+HF8Iru7lsq8gH23mEpFsTaJisFCO YER9bhv1KUyRA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4S56X560GJz9rxF; Wed, 11 Oct 2023 11:13:57 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: Tom Alexander , emacs-orgmode@gnu.org Subject: Re: Inconsistent text markup handling when double-nesting markers In-Reply-To: <2909a6ed-3a34-4aa1-a7bc-586169248029@gmail.com> References: <8734yiadey.fsf@localhost> <2909a6ed-3a34-4aa1-a7bc-586169248029@gmail.com> Date: Wed, 11 Oct 2023 09:15:35 +0000 Message-ID: <87wmvt7c5k.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -7.13 X-Migadu-Queue-Id: 390CF6A5F1 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.13 X-TUID: 6N8JEGcePpTF Max Nikulin writes: > Isn't nested bold for "**bold**" a bug? Generally it is not allowed and > > *b1 *b2* b3* > > is parsed as bold only for "b1 *b2". No, **bold** it is not a bug. The parser is recursive with inner markup not "seeing" its parent. So, we first parse the outer bold and then continue parsing the contents separately, as *bold*. Be it another way, /*bold italic*/ would also not be allowed as we demand bol, whitespace, -, (, {, ', or " before the markup: https://orgmode.org/worg/org-syntax.html#Emphasis_Markers -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at