chrusty / protoc-gen-jsonschema

Protobuf to JSON-Schema compiler
Apache License 2.0
496 stars 101 forks source link

Add an option for KeepNewLinesInDescription flag #167

Open eddieowens opened 1 year ago

eddieowens commented 1 year ago

As part of #109, all newlines from descriptions were removed but in some cases I want to preserve them e.g. when using the description field for display in a gitbook site. Would it be possible to add an option for the KeepNewLinesInDescription flag in here?

I'd be completely willing to make the PR as well.

tzahush commented 9 months ago

@chrusty , looks like we got another demand here! this is solved by https://github.com/chrusty/protoc-gen-jsonschema/pull/179