diff --git a/scripts/build_docs.py b/scripts/build_docs.py index b2cfcf11d..94a9b90f1 100755 --- a/scripts/build_docs.py +++ b/scripts/build_docs.py @@ -39,7 +39,7 @@ def htmlify(d): d = re.sub(r'```([^`]+)```', r'\1', d) # code tags d = re.sub(r'`([^`]+)`', r'\1', d) # code tags d = re.sub(r'\[([^\]]*)\]\(([^\)]*)\)', r'\1', d) # links tags - d = re.sub(r'[^">](http://[^ ]+)', r'\1', d) # links tags + d = re.sub(r'([^">])(http://[^ ]+)', r'\1\2', d) # links tags return d def html_description(ds,current): diff --git a/src/jswrap_interactive.c b/src/jswrap_interactive.c index b763dc484..c29bf371b 100644 --- a/src/jswrap_interactive.c +++ b/src/jswrap_interactive.c @@ -34,7 +34,7 @@ void jswrap_interface_setBusyIndicator(JsVar *pinVar) { /*JSON{ "type":"function", "name" : "setSleepIndicator", "description" : ["When Espruino is asleep, set the pin specified here low (when it's awake, set it high). Set this to undefined to disable the feature.", - "Please see [http://www.espruino.com/Power+Consumption] for more details on this."], + "Please see http://www.espruino.com/Power+Consumption for more details on this."], "generate" : "jswrap_interface_setSleepIndicator", "params" : [ [ "pin", "JsVar", ""] ] }*/ @@ -50,7 +50,7 @@ void jswrap_interface_setSleepIndicator(JsVar *pinVar) { /*JSON{ "type":"function", "name" : "setDeepSleep", "description" : [ "Set whether we can enter deep sleep mode, which reduces power consumption to around 100uA. This only works on the Espruino Board.", - "Please see [http://www.espruino.com/Power+Consumption] for more details on this." ], + "Please see http://www.espruino.com/Power+Consumption for more details on this." ], "generate" : "jswrap_interface_setDeepSleep", "params" : [ [ "sleep", "bool", ""] ] }*/