docs: mustache helper safety check

This commit is contained in:
Student 2017-11-13 13:50:56 -05:00
parent 079d7eb6ca
commit 0ae4416242
2 changed files with 14 additions and 11 deletions

View File

@ -8,6 +8,9 @@ const helpers = require('handlebars-helpers')({
// Allows pipe characters to be used within markdown tables.
handlebars.registerHelper('depipe', (text) => {
if (!text) {
return text;
}
return text.replace('|', `\\|`);
});

View File

@ -595,7 +595,7 @@ void WSRequestHandler::HandleGetSceneItemProperties(WSRequestHandler* req) {
* @param {String} `bounds.type` The new bounds type of the source.
* @param {int} `bounds.alignment` The new alignment of the bounding box. (0-2, 4-6, 8-10)
* @param {double} `bounds.x` The new width of the bounding box.
* @param {double} `bounds.y' The new height of the bounding box.
* @param {double} `bounds.y` The new height of the bounding box.
*
* @api requests
* @name SetSceneItemProperties