1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 06:55:57 +00:00

Creating new validator

This commit is contained in:
Scott Tolksdorf
2016-09-14 22:32:29 -04:00
parent cd2337ff2c
commit c49321d590
2 changed files with 16 additions and 2 deletions

View File

@@ -17,7 +17,21 @@ module.exports = {
render : (rawText)=>{
return Markdown(rawText, {renderer : renderer})
},
validate : (rawText)=>{
validate : (rawText) => {
var res = xmllint.validateXML({
xml: rawText,
schema: "String"
});
console.log(res);
},
validate2 : (rawText)=>{
var currentLine = 0;
var errors = [];
var tokens = Markdown.lexer(rawText, {renderer : renderer});