diff --git a/lib/ext/Cite/index.js b/lib/ext/Cite/index.js index f82d1f94b..525334ca9 100644 --- a/lib/ext/Cite/index.js +++ b/lib/ext/Cite/index.js @@ -53,7 +53,7 @@ Ref.prototype.toDOM = function(state, content, args) { // The php preprocessor did our expansion. const allowNestedRef = state.parseContext.inTemplate && state.parseContext.extTag !== 'ref'; - return ParsoidExtApi.parseWikitextToDOM(state, args, '', content, { + return ParsoidExtApi.parseTokenContentsToDOM(state, args, '', content, { // NOTE: sup's content model requires it only contain phrasing // content, not flow content. However, since we are building an // in-memory DOM which is simply a tree data structure, we can @@ -373,7 +373,7 @@ var createReferences = function(env, body, refsOpts, modifyDp, autoGenerated) { }; References.prototype.toDOM = function(state, content, args) { - return ParsoidExtApi.parseWikitextToDOM(state, args, '', content, { + return ParsoidExtApi.parseTokenContentsToDOM(state, args, '', content, { wrapperTag: 'div', extTag: 'references', inTemplate: state.parseContext.inTemplate,