test
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

good

12Me21 8617d483 73771b93

+7 -3
+7 -3
test.html
··· 127 127 128 128 // Example usage: 129 129 const input = [ 130 + "zzz ", 130 131 {style:"italic", surround:["/","/"], children:[ 131 132 "abc", 132 133 {style:"bold", surround:["**","**"], children: [ ··· 135 136 "ghi", 136 137 ]}, 137 138 ]; 138 - 139 + console.log(input) 139 140 const output = flattenStyledTree(input); 140 - let o = tofacets(output) 141 - console.log(process(o)) 141 + console.log(output) 142 + let post = tofacets(output) 143 + console.log(post) 144 + document.write("<xmp>"+post.text+"</xmp>") 145 + document.write(process(post)) // <i>abc</i><i><b>def</b></i><i>ghi</i> 142 146 //console.log(JSON.stringify(output, null, 2)); 143 147 // Expected output: 144 148 // [