Permalink
Browse files

Markdownify abstracts (programminghistorian#1055)

* this should not really have been in brackets

* render any markdown in abstracts

* strip markdown when making machine-readable abstracts
  • Loading branch information...
mdlincoln committed Oct 17, 2018
1 parent 7993c9a commit 701550e854ff21216b623ccf27858fcb24adebd2
Showing with 4 additions and 4 deletions.
  1. +1 −1 _includes/lesson_describe.html
  2. +1 −1 _layouts/lesson.html
  3. +1 −1 doaj_xml/doaj.xml
  4. +1 −1 en/lessons/json-and-jq.md
@@ -23,7 +23,7 @@
<h3 class="above-title">{{ include.authors }}</h3>
<a href="{{ lesson.url }}"><h2 class="title">{{ lesson.title }}</h2></a>

<p class="abstract">{{ lesson.abstract }}</p>
<p class="abstract">{{ lesson.abstract | markdownify }}</p>

{% comment %}
Activity and topic are hidden via CSS as a hack to let JS sorting by activity and topic work. Note that the date sort is publication date for english lesson, and translation date for spanish lessons.
@@ -35,7 +35,7 @@ <h2>{% include author.html %}</h2>
</div>

<div class="header-abstract">
<p>{{ page.abstract }}</p>
{{ page.abstract | markdownify }}
</div>

<div class="container expanded">
@@ -28,7 +28,7 @@ Generates an XML file with metadata for all lessons for the Directory of Open Ac
</author>
{% endfor %}
</authors>
<abstract language="{{ lesson_lang }}">{{ lesson.abstract }}</abstract>
<abstract language="{{ lesson_lang }}">{{ lesson.abstract | xml_escape }}</abstract>
<fullTextUrl format="html">https://programminghistorian.org{{ lesson.url }}</fullTextUrl>
<keywords language="eng">
{% for keyword in lesson.topics %}
@@ -13,7 +13,7 @@ difficulty: 2
review-ticket: https://github.com/programminghistorian/ph-submissions/issues/23
activity: transforming
topics: [data-manipulation]
abstract: "Working with data from an art museum API and from the Twitter API, this lesson teaches how to use the command-line utility [jq] to filter and parse complex JSON files into flat CSV files."
abstract: "Working with data from an art museum API and from the Twitter API, this lesson teaches how to use the command-line utility _jq_ to filter and parse complex JSON files into flat CSV files."
redirect_from: /lessons/json-and-jq
---

0 comments on commit 701550e

Please sign in to comment.