NWACus / avy

Mobile-Native Viewing of NAC Avalanche Forecasts
MIT License
10 stars 6 forks source link

Entire HTML blob bold #735

Open stevekuznetsov opened 2 months ago

stevekuznetsov commented 2 months ago

Seen for this forecast: https://nwac.us/avalanche-forecast/#/forecast/2/135634

IMG_0188

stevekuznetsov commented 2 months ago

Hm ... we may actually have done the "right" thing - the whole section is in a <strong/>

$ curl -s https://api.avalanche.org/v2/public/product/135634 | jq --raw-output .forecast_avalanche_problems[0].discussion 
<p><strong><span style="font-weight: 400;">There&rsquo;s not a ton of new snow out there, but there&rsquo;s enough to drift into shallow, small slabs in exposed areas. You&rsquo;re most likely to encounter a wind-loaded pocket at higher elevations (above 6000ft). Look for clues like textured surfaces, sharp wind lips, and fresh drifts to point toward a potentially loaded slope. These softer wind slabs should be relatively small and easier to manage; just don&rsquo;t let one knock you over in high-consequence terrain. </span></strong></p>
stevekuznetsov commented 2 months ago

Looks like a bug in our HTML renderer library .. https://jsfiddle.net/#&togetherjs=G15vCqQryT