Przeglądaj źródła

print less debugging info.

Lucas Stadler 11 lat temu
rodzic
commit
1cb0223bde
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      js/babl/public/index.html

+ 1 - 2
js/babl/public/index.html

108
				re: /^(\*\*?|__?)([^\s]+)\1$/,
108
				re: /^(\*\*?|__?)([^\s]+)\1$/,
109
				fn: function(match) {
109
				fn: function(match) {
110
					var highlight = {"*": "em", "**": "strong", "_": "em", "__": "strong"};
110
					var highlight = {"*": "em", "**": "strong", "_": "em", "__": "strong"};
111
					console.log(match.toString());
112
					var el = document.createElement(highlight[match[1]]);
111
					var el = document.createElement(highlight[match[1]]);
113
					el.textContent = match[2];
112
					el.textContent = match[2];
114
					return el;
113
					return el;
146
						displayMessage(msg);
145
						displayMessage(msg);
147
						break;
146
						break;
148
					default:
147
					default:
149
						console.warn("unkown message type: " + msg.type, msg);
148
						break;
150
				}
149
				}
151
			}
150
			}
152
151