4,554
edits
| No edit summary | No edit summary | ||
| Line 1,169: | Line 1,169: | ||
|          // Check if ".article-description" exists and format its text |          // Check if ".article-description" exists and format its text | ||
|          if ($(".article-description").length) { |          if ($(".article-description").length) { | ||
|              var descriptionText = $(".article-description").text(); |              var descriptionText = $(".article-description").text(); | ||
|              var formattedDescription = formatParagraphs(descriptionText); |              var formattedDescription = formatParagraphs(descriptionText); | ||
|              $(".article-description").html(formattedDescription); // Set the formatted text |              $(".article-description").html(formattedDescription); // Set the formatted text | ||
|          } |          } | ||
| Line 1,179: | Line 1,176: | ||
|          // Check if ".article-reflection" exists and format its text |          // Check if ".article-reflection" exists and format its text | ||
|          if ($(".article-reflection").length) { |          if ($(".article-reflection").length) { | ||
|              var reflectionText = $(".article-reflection").text(); |              var reflectionText = $(".article-reflection").text(); | ||
|              var formattedReflection = formatParagraphs(reflectionText); |              var formattedReflection = formatParagraphs(reflectionText); | ||
|              $(".article-reflection").html(formattedReflection); // Set the formatted text |              $(".article-reflection").html(formattedReflection); // Set the formatted text | ||
|          } |          } | ||