openknowledge-archive / dpr-api

DEPRECATED - Data Package Registry API and Frontend
http://frictionlessdata.io/
MIT License
7 stars 6 forks source link

Description excerpt at top of view page has unrendered markdown #270

Closed rufuspollock closed 7 years ago

rufuspollock commented 7 years ago

Short description at top of page includes non-parsed markdown - see e.g. https://staging.datapackaged.com/core/gold-prices which has

"Monthly gold prices since 1950 in USD (London market). Data is sourced from the Bundesbank. ## Data * [Bundesbank statistic..."

Solution (as in old site): parse markdown to html, then de-htmlify and then do selection of first XX characters (i think we actual had a function for this in jinja / nunjucks - check old code)

Tasks

Acceptance Criteria

subhankarb commented 7 years ago

FIXED. Added markdown format for README. Did not add any test as could not found any obvious way to test it. One way is to push manually a README file with heading with 2 # then check it rendered as h2. But looked little over kill for this small issue.

subhankarb commented 7 years ago

FIXED.