Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: docs for the parsed syntax tree types #60

Open
ghost opened this issue Jan 31, 2019 · 1 comment
Open

Documentation: docs for the parsed syntax tree types #60

ghost opened this issue Jan 31, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 31, 2019

Could you provide documentation for the parsed syntax tree documentation types, supported mark down tags -> types, etc?

Would be really helpful in creating a custom "renderer".

@ariabuckles
Copy link
Owner

Hi @pjlevitt !

That's a great idea. I probably won't be able to get to it for a while, as I'm currently really busy with work, but I'll try to address it when I can.

If it's helpful in the short term, when I'm writing a custom outputter/renderer, I tend to look through the defaultRules declaration. The html: output functions are mostly pretty simple, and show all of the fields on each type of AST parse node. (Also, html: null means the rule is parse-only, and when parsed, it will use a different output function. For example, nptable uses the table AST parse node format and output function.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant