Comparing version 1.15.1 to 1.15.2
@@ -261,5 +261,7 @@ const extractTags = require('rexml'); | ||
const twl = typeWithLink ? `${typeWithLink} ` : '' | ||
let line = `${twl}__${nn}` | ||
let LINE = twl// `${twl}<strong>${nn}` | ||
let useTag = /_/.test(nn) | ||
if (this.extends) { | ||
let e = this.extends | ||
useTag = useTag || /_/.test(this.extends) | ||
let e = `\`${this.extends}\`` | ||
const foundExt = allTypes.find(({ fullName }) => { | ||
@@ -269,11 +271,25 @@ return fullName == this.extends | ||
if (foundExt && foundExt.link) { | ||
useTag = useTag || /_/.test(foundExt.link) | ||
e = '<a ' | ||
if (foundExt.description) e += `title="${foundExt.description}" ` | ||
e += `href="${foundExt.link}">${this.extends}</a>` | ||
if (foundExt.description) { | ||
e += `title="${foundExt.description}" ` | ||
useTag = useTag || /_/.test(foundExt.description) | ||
} | ||
e += `href="${foundExt.link}">\`${this.extends}\`</a>` | ||
} | ||
line += ` extends ${e}` | ||
const extendS = ` extends ${e}` | ||
if (useTag) LINE += '<strong>' | ||
else LINE += '__' | ||
LINE += nn + extendS | ||
if (typeof flatten == 'function') flatten(this.extends) | ||
} else { | ||
if (useTag) LINE += '<strong>' | ||
else LINE += '__' | ||
LINE += nn | ||
} | ||
line += `__${d}` | ||
if (useTag) LINE += '</strong>' | ||
else LINE += '__' | ||
LINE += d | ||
const table = makePropsTable(this.properties, allTypes, { narrow, flatten }) | ||
const r = `${line}${table}` | ||
const r = `${LINE}${table}` | ||
return r | ||
@@ -280,0 +296,0 @@ } |
@@ -0,1 +1,7 @@ | ||
## 22 July 2019 | ||
### [1.15.2](https://github.com/artdecocode/typal/compare/v1.15.1...v1.15.2) | ||
- [fix] Use the `<strong>` tag in props. | ||
## 21 July 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "typal", | ||
"version": "1.15.1", | ||
"version": "1.15.2", | ||
"description": "Organises TypeDefs By Placing Them Into Types.Xml File To Be Embedded Into Source Code Compatible With VSCode And Google Closure Compiler, Generates Externs And Allows To Place Documentation In README Markdown.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -261,5 +261,7 @@ import extractTags from 'rexml' | ||
const twl = typeWithLink ? `${typeWithLink} ` : '' | ||
let line = `${twl}__${nn}` | ||
let LINE = twl// `${twl}<strong>${nn}` | ||
let useTag = /_/.test(nn) | ||
if (this.extends) { | ||
let e = this.extends | ||
useTag = useTag || /_/.test(this.extends) | ||
let e = `\`${this.extends}\`` | ||
const foundExt = allTypes.find(({ fullName }) => { | ||
@@ -269,11 +271,25 @@ return fullName == this.extends | ||
if (foundExt && foundExt.link) { | ||
useTag = useTag || /_/.test(foundExt.link) | ||
e = '<a ' | ||
if (foundExt.description) e += `title="${foundExt.description}" ` | ||
e += `href="${foundExt.link}">${this.extends}</a>` | ||
if (foundExt.description) { | ||
e += `title="${foundExt.description}" ` | ||
useTag = useTag || /_/.test(foundExt.description) | ||
} | ||
e += `href="${foundExt.link}">\`${this.extends}\`</a>` | ||
} | ||
line += ` extends ${e}` | ||
const extendS = ` extends ${e}` | ||
if (useTag) LINE += '<strong>' | ||
else LINE += '__' | ||
LINE += nn + extendS | ||
if (typeof flatten == 'function') flatten(this.extends) | ||
} else { | ||
if (useTag) LINE += '<strong>' | ||
else LINE += '__' | ||
LINE += nn | ||
} | ||
line += `__${d}` | ||
if (useTag) LINE += '</strong>' | ||
else LINE += '__' | ||
LINE += d | ||
const table = makePropsTable(this.properties, allTypes, { narrow, flatten }) | ||
const r = `${line}${table}` | ||
const r = `${LINE}${table}` | ||
return r | ||
@@ -280,0 +296,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248644
3729