paleolimbot commented on code in PR #638:
URL: https://github.com/apache/sedona-db/pull/638#discussion_r2824337601


##########
docs/reference/sql/_render_meta.py:
##########
@@ -187,6 +187,17 @@ def to_str(v):
             return " "
         elif v["t"] == "Para":
             return "".join(to_str(item) for item in v["c"])
+        if v["t"] == "Quoted":
+            quote_type = v["c"][0]["t"]
+            if quote_type == "SingleQuote":
+                quote_char = "'"
+            elif quote_type == "DoubleQuote":
+                quote_char = '"'
+            else:
+                raise ValueError(f"Unhandled quote type in ast {v}")
+
+            content = "".join(to_str(item) for item in v["c"][1])
+            return f"{quote_char}{content}{quote_char}"

Review Comment:
   This is an unfortunate consequence of how the build system is implemented: 
we get a Pandoc AST here because that's how Quarto filters give us the data. 
Functionally it means that we have to handle Pandoc syntax elements for 
anything that shows up in the description or argument names/descriptions.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to