@reality.eth/reality-eth-lib 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -232,7 +232,11 @@ exports.parseQuestionJSON = function(data, errors_to_title) {
232
232
  } else {
233
233
  question_json['title_html'] = marked.parse(safeMarkdown).replace(/<img.*src=\"(.*?)\".*alt=\"(.*?)\".*\/?>/, '<a href="$1">$2</a>');
234
234
  question_json['title_text'] = convert(question_json['title_html'], {
235
- selectors: [{selector: 'h1', options: { uppercase: false }}, {selector: 'h2', options: { uppercase: false }}]
235
+ selectors: [
236
+ {selector: 'h1', options: { uppercase: false }},
237
+ {selector: 'h2', options: { uppercase: false }},
238
+ {selector: 'hr', format: 'skip'}
239
+ ]
236
240
  });
237
241
  }
238
242
  } catch(e){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/reality-eth-lib",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Tools for handling questions in the reality.eth fact verification platform",
5
5
  "scripts": {
6
6
  "test": "env TZ='Asia/Kabul' mocha ./test"
@@ -39,5 +39,5 @@
39
39
  "url": "https://github.com/RealityETH/monorepo/issues"
40
40
  },
41
41
  "homepage": "https://reality.eth.link",
42
- "gitHead": "1962e3224fbde8811b888a731e714c8bd23b42f7"
42
+ "gitHead": "19cb85c2b77ec98d45754be024a1ad73d9249e00"
43
43
  }