jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.77k forks source link

Add example of emitting tags to documentation. #1286

Open davidzchen opened 1 week ago

davidzchen commented 1 week ago

Is there a way to emit explicit tags when emitting YAML values?

The How to Emit YAML documentation does not have any mention of this.

davidzchen commented 1 week ago

After digging through the bugs, I found that tags can be added using YAML::LocalTag("tag").

I'm happy to add this to the documentation.

jbeder commented 1 week ago

Great! Happy to accept a PR.