Re: [sphinx-users] Access to Sphinx AST before transforms/post-transforms

2020-11-25 Thread Daniel Scott
On Sun, Aug 9, 2020, 6:49 PM Matt McKay wrote: > Hi Sphinx Group. > > Is there a way to access the Sphinx abstract syntax tree (AST) *before* > any transforms or post-transforms are applied (i.e. directly after the > parser phase)? > > I am writing an extension to convert reST to Myst syntax but

Re: [sphinx-users] Access to Sphinx AST before transforms/post-transforms

2020-08-09 Thread Matt McKay
Thanks Takeshi -- that is a nice idea. I will give that a shot. On Mon, Aug 10, 2020 at 12:22 PM Komiya Takeshi wrote: > Hi, > > How about using a transform having a very high priority? Then you can > access a doctree (a.k.a. AST) just after the parsed. > > Thanks, > Takeshi KOMIYA > >

Re: [sphinx-users] Access to Sphinx AST before transforms/post-transforms

2020-08-09 Thread Komiya Takeshi
Hi, How about using a transform having a very high priority? Then you can access a doctree (a.k.a. AST) just after the parsed. Thanks, Takeshi KOMIYA 2020年8月10日(月) 10:49 Matt McKay : > > Hi Sphinx Group. > > Is there a way to access the Sphinx abstract syntax tree (AST) before any > transforms

[sphinx-users] Access to Sphinx AST before transforms/post-transforms

2020-08-09 Thread Matt McKay
Hi Sphinx Group. Is there a way to access the Sphinx abstract syntax tree (AST) *before* any transforms or post-transforms are applied (i.e. directly after the parser phase)? I am writing an extension to convert reST to Myst syntax but I am finding restoring some of the information contained