File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,11 @@ plugin.getProblem = function(problem, cb) {
158
158
problem . totalAC = JSON . parse ( q . stats ) . totalAccepted ;
159
159
problem . totalSubmit = JSON . parse ( q . stats ) . totalSubmission ;
160
160
161
- let content = q . translatedContent ? q . translatedContent : q . content ;
162
- // Replace <sup/> with '^' as the power operator
163
- content = content . replace ( / < \/ s u p > / gm, '' ) . replace ( / < s u p > / gm, '^' ) ;
164
- problem . desc = he . decode ( cheerio . load ( content ) . root ( ) . text ( ) ) ;
161
+ const content = q . translatedContent ? q . translatedContent : q . content ;
162
+ // // Replace <sup/> with '^' as the power operator
163
+ // content = content.replace(/<\/sup>/gm, '').replace(/<sup>/gm, '^');
164
+ // problem.desc = he.decode(cheerio.load(content).root().text());
165
+ problem . desc = content ;
165
166
166
167
problem . templates = JSON . parse ( q . codeDefinition ) ;
167
168
problem . testcase = q . sampleTestCase ;
You can’t perform that action at this time.
0 commit comments