* AST tree line numbers
@ 2019-06-17 8:49 paul kmit
[not found] ` <b94b357f-aeea-450e-b6cd-cdc3e0aa432b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: paul kmit @ 2019-06-17 8:49 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1232 bytes --]
Hi,
I'm using pandoc to parse Markdown input to AST, make some actions based on
Markdown input's contents and then make some tiny alteration to the input
files.
The issue is: this flow doesn't work for me:
AST -> my filter -> AST -> output.md
because Pandoc generates Markdown that differs in style from my original
.md files
So the question is: will Pandoc ever include line numbers in it's AST trees
for more convenient changing of files?
This node.js library does that: https://astexplorer.net/ (I'm not using it
because it does not recognize LaTeX formulas properly)
Are there any workarounds apart from counting characters in the AST nodes?
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b94b357f-aeea-450e-b6cd-cdc3e0aa432b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2801 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: AST tree line numbers
[not found] ` <b94b357f-aeea-450e-b6cd-cdc3e0aa432b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2019-07-11 21:36 ` John MacFarlane
0 siblings, 0 replies; 2+ messages in thread
From: John MacFarlane @ 2019-07-11 21:36 UTC (permalink / raw)
To: paul kmit, pandoc-discuss
The Haskell commonmark library I'm working on does track
source positions, so once this is integrated into pandoc
we should be able to do this. It may take a while though.
paul kmit <paul.kmitj-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
> Hi,
>
> I'm using pandoc to parse Markdown input to AST, make some actions based on
> Markdown input's contents and then make some tiny alteration to the input
> files.
> The issue is: this flow doesn't work for me:
>
> AST -> my filter -> AST -> output.md
>
>
> because Pandoc generates Markdown that differs in style from my original
> .md files
> So the question is: will Pandoc ever include line numbers in it's AST trees
> for more convenient changing of files?
>
> This node.js library does that: https://astexplorer.net/ (I'm not using it
> because it does not recognize LaTeX formulas properly)
>
> Are there any workarounds apart from counting characters in the AST nodes?
>
>
> --
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/b94b357f-aeea-450e-b6cd-cdc3e0aa432b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-11 21:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-17 8:49 AST tree line numbers paul kmit
[not found] ` <b94b357f-aeea-450e-b6cd-cdc3e0aa432b-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2019-07-11 21:36 ` John MacFarlane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).