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

YAMLObject documentation #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mzagozen
Copy link

@mzagozen mzagozen commented Oct 8, 2019

The documentation on how to use the new yaml.YAMLObject "magic" class is sparse. After figuring out how its attributes and methods map to the old representer/constructor conventions, I decided to write down my findings for others :)

I didn't regenerate HTMLs (yet, in this branch). Which version of pandoc is used? When using 2.7.3, a lot of other unrelated style changes are output.

Using 'representer' and 'constructor' respectivelly fits better with
what the metaclass is doing underneath.
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

Successfully merging this pull request may close these issues.

1 participant