Boolean flag options use question mark methods by convention, so those are changed to use the property? macro. The original getter methods are still available but deprecated.
The gfm and toc options are unused and could probably be removed until that changes, but that's not part of this patch.
This was originally part of a series of patches to markd by @asterite (https://github.com/crystal-lang/crystal/pull/8174/commits/a34895cd2dcf7afbfc222c38e80a5cc187c9d646) which is now being upstreamed.
Boolean flag options use question mark methods by convention, so those are changed to use the
property?
macro. The original getter methods are still available but deprecated.The gfm and toc options are unused and could probably be removed until that changes, but that's not part of this patch.