From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 6AacGgSQgWSUUgEASxT56A (envelope-from ) for ; Thu, 08 Jun 2023 10:23:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8CikGgSQgWQSJQAA9RJhRA (envelope-from ) for ; Thu, 08 Jun 2023 10:23:32 +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 1EE823E59D for ; Thu, 8 Jun 2023 10:23:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="a/IYlQoS"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686212612; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=8Q4XO2H9r+eSEhGM+5gOUmzN8ai14X9laASagOsHiHk=; b=udbgmKRXP6+cjEHkwQNnc1tIHKQOtKJnNepa3cb0X1xQAvotJPjGfXpK7GG7aHkmPsJmXU 9d0fgykKpkQk/FpYQVWG8b6OQnq08zmQFKfd1FIYVXKvnMgkaaeM2RdsCnpLR29Cz3wtlf GK4vFq0yB+4VkJeBsN40gTWb49tjrFN5mB9iw3waHkbzAtvndtqUsw76vmvRBYZzNrevbp WttZG8hUq1wzZby7lp80k3xJDKrG2EroEE+pDvjLwFDx9NA1hj9r8kwxTn0mfc0KaNh1MT 32IfUV1maUz/51ETEnahRlGo49Ns0OBA7hvytq+6BgSfE7rIEN6ieHh0rS2iKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="a/IYlQoS"; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686212612; a=rsa-sha256; cv=none; b=ZZKAHdhIulNce4SqVPUhLScfDAfqWh0yL9GwqQ2BtdaetexgtTT+FzttCmwO1DHK0NqnEG 99BgXeKJxrWIDRGXm9Of0phrC30IUJt2WSgd9xM3PqQRjirF6AvM998MMcUO41IDc/bDpj dbNp+uDk9fPgmzGfSaQLRy5OBeqlqA5ySlGyVNgLW/U1UlL2fYaXEFzBHimjBR5e0vkT+a Ow1TEMgDgz6knY7lo8iACRtX2vNIK9Cl+E1iBmg5nxjXdgrR28Dgs72HRD4Vwg8y6WQ25y L8nVZ0mJQTQXMV+ILEBwp3lLlMoQhdC3ybY4qxi+Uq1kbftr1Ppmu2q5vp36dg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7AuT-00080q-1g; Thu, 08 Jun 2023 04:22:21 -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 1q7AuR-00080R-2A for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 04:22:19 -0400 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7AuP-0001Wn-EO for emacs-orgmode@gnu.org; Thu, 08 Jun 2023 04:22:18 -0400 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f62b512fe2so452274e87.1 for ; Thu, 08 Jun 2023 01:22:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686212535; x=1688804535; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=8Q4XO2H9r+eSEhGM+5gOUmzN8ai14X9laASagOsHiHk=; b=a/IYlQoStmo1kSndoGn206Ghj9FCwBtMlmQaRYwrqPk22HW9tym3QkT9h2JzoXYxn5 GLWSc0ZkNR4qeTIKuHUBCTinOJZDF+W52w/SGtE6k3sIdMBQWJW8SC9wbDw1B7rpoZKS hZ/oL2rIj1AvXsjJcz3YvpEE3GrevU2J4HMUZzEANj67ojmBZmyOaer0ds5mbtQkV0Tj 0qxZET3EFR3ulmqxLUYg3935huxESJ+lg8MFPrCx6duDQ4s7dG3tUym4sYnxnp1Xz8V4 UO4G/mZKFGhhyl0UoPHiCE3vcjWiZ9uQ00lgve8UfolUEPaZyCwxeJ0kI96BFKLdUjR0 e8Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686212535; x=1688804535; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8Q4XO2H9r+eSEhGM+5gOUmzN8ai14X9laASagOsHiHk=; b=KUvInDn248UqfGxsJeKICmcXDKIcI5o+HOUdtiAf35Vj+pUzMm2gm5r8+4/LYPJa2B UyRp10h1hNKkPIKb23ui6iftT8O1pG12A7GA37WcrbRx+R8Avf4Eu7HszmkeRuxk2CnK D9WiXGmj8/aWHLGx4JES/ECqrXy5sDiR3XaPDyrJNSDJCfG0hSRajSFROGCH043aMM6r K0urNCfpOM6Qw8v+RZm+9lMFSRNisnqoNodosj//fk1Z5ki761qHuSRrjf+JMstae65X UsIXlCI/UEIKr3aC49kRVIti/J8RZiAgBzkG5U7JO5mCeuXSEwbrZgc1r2KQbcKbhAnI Au0A== X-Gm-Message-State: AC+VfDz+9ikyRBDaMujOI0MIjlMgyWOzyEVpDQQ8f+6OxLh/vE24UlD9 HQspUj+bnK8p+Bx4ue9HGPgulpMUb8NE1911k/FruguHm4I= X-Google-Smtp-Source: ACHHUZ5Igk63Gi+El03WnNDe9CVoVnAIz/Tk+es77r5CiAfx2y/TOutmmLGmwkodxrw61wu+p7xr4KU0wtOWH8FQMg0= X-Received: by 2002:ac2:5b46:0:b0:4f6:4ba0:7f4b with SMTP id i6-20020ac25b46000000b004f64ba07f4bmr676117lfp.68.1686212534757; Thu, 08 Jun 2023 01:22:14 -0700 (PDT) MIME-Version: 1.0 From: Laith Bahodi Date: Thu, 8 Jun 2023 04:21:48 -0400 Message-ID: Subject: Parsing nested markup objects To: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::12b; envelope-from=laithbahodi@gmail.com; helo=mail-lf1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: UNKNOWN X-Migadu-Flow: FLOW_IN X-Spam-Score: -0.45 X-Migadu-Queue-Id: 1EE823E59D X-Migadu-Scanner: in3.migadu.com X-Migadu-Spam-Score: -0.45 X-TUID: w4VV1SKob2j+ Hi! I'm working on a parser for org and I noticed something about nested markup in the syntax spec: markup starting at the limit of another object seems like it shouldn't be interpreted as markup. The spec says that the precondition characters are: PRE MARKER ... PRE Either a whitespace character, -, (, {, ', ", or the beginning of a line. https://orgmode.org/worg/dev/org-syntax-edited.html#Emphasis_Markers With links, since `[` isn't in that list, the spec seems to imply the following wouldn't contain an italic block, but it does: [[https://example.com][/according to the spec, this shouldn't be marked up/]] same goes for */abc/* (since `*` isn't in the set defined by PRE) I understand why it works like this since it's pretty convenient, but I feel like the details about this interaction should probably be clarified since it's not quite obvious from the spec (unless I missed something!). Also, how are these objects intended to be handled? I couldn't pinpoint where in `org-element` this is approached.