Skip to content

Commit

Permalink
fix: Obtaining related articles from See Also section is not working …
Browse files Browse the repository at this point in the history
…if list is preceeded by HTML element
  • Loading branch information
imtodor committed Dec 3, 2018
1 parent 2a01281 commit 6405ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _assets/js/related-articles.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$(function () {
var relatedArticlesMarker = $('h1#see-also, h2#see-also, h3#see-also');
if (relatedArticlesMarker.length) {
var relatedArticlesList = relatedArticlesMarker.next('ul');
var relatedArticlesList = relatedArticlesMarker.nextAll('ul').first();
if (relatedArticlesList.length) {
$('#related-articles').append(relatedArticlesList.html());

Expand Down

0 comments on commit 6405ddd

Please sign in to comment.