dvargas92495 / SmartBlocks

Useful examples from developer community for Roam42 SmartBlocks
147 stars 7 forks source link

<%DATE, when used inside a <%CONCAT, renders the date without a comma after the day of month #139

Closed eatondpe closed 3 years ago

eatondpe commented 3 years ago

🐞 Describe the behavior of the bug/issue you are encountering

<%Date: behaves slightly different inside a <%CONCAT: than it does outside of one. Specifically, <%CONCAT:Today is ,<%DATE:Fri December 18 2020%>%> renders the date without a comma after the day of the month.

💻 Environment

Platform: Windows

Browser: Brave

✔️ Describe what you think the Expected Behavior should be

The <%DATE function should render the date as a Roam formatted DNP everywhere, including inside a <%CONCAT.

📜 Steps to reproduce the issue you are having

  1. Create a SmartBlock with <%CONCAT:Today is ,<%DATE:December 12 2020%>%>.
  2. Run that SmartBlock.
  3. Observe the result is Today is December 12 2020, with no comma after the 12.

🔨 Describe any workarounds you've created/discovered

Since I am using <%CONCAT to format the text that will replace the contents of a block, I don't know of any workaround for this.

📷 Additional Info (Errors, Screenshots, GIFs, etc.)


[label_bug]