You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xml-like syntax of smartblock is failing to parse.
then on the fallback - I try to escape the symbols but they are already escaped, so generated code ends up with double escape translating into the escape of backslash instead of escape of
example block
<%J:```javascript
let reg_parent_string = new RegExp('\`\`\`clojure\\s(.+)\`\`\`','s');
let query;
try{
query = window.datomicQuery.getParentBlock()[0][0].match(reg_parent_string)[1];
} catch (err) {
return 'ERROR - make sure you run the query from a block nested immediately under your query. Also check that common functions on [[Template/Datomic Query]] are running.';
}
//Execute query
let results;
try {
results = window.roamAlphaAPI.q(query);
} catch (err) {
return err;
}
return window.datomicQuery.processResults(results,query) + ']]]]';```%>
The text was updated successfully, but these errors were encountered:
Stvad
changed the title
Having SmartBlock with JavaScript sharde breaks the build
Having SmartBlock with JavaScript shared breaks the build
Mar 18, 2021
Stvad
changed the title
Having SmartBlock with JavaScript shared breaks the build
Having Roam42 SmartBlock with JavaScript shared breaks the build
Mar 18, 2021
a few aspects here:
symbols but they are already escaped, so generated code ends up with double escape translating into the escape of backslash instead of escape of
example block
The text was updated successfully, but these errors were encountered: