Skip to content
Discussion options

You must be logged in to vote

Went with this:

TWSRRuby.prototype.render = function(parent,nextSibling) {
	var oc = this.parseTreeNode.children;
	//if(!("twsrruby" in this)){
	if(true){
		this.parentDomNode = parent;
		this.computeAttributes();
		var upper = this.getAttribute("u");
		var useAnswer = !this.hasAttribute("na");

		var ct = this.getVariable("currentTiddler");
		var tid = $tw.wiki.getTiddler(ct);
		var tags = tid ? tid.getFieldList("tags") : [];
		if(tags.indexOf("$:/tags/twsr/noRubyAnswer") > 0){
				useAnswer = false;
		}

		var container = this.document.createElement("span");
		Widget.prototype.render.call(this, container, nextSibling);
		var wikiParser = $tw.wiki.parseText("text/vnd.tiddlywiki", "<ruby>…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@saqimtiaz
Comment options

@welford
Comment options

@welford
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by welford
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants