Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update alert rendering to fix visual bug #3680

Merged
merged 3 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ To run the site locally:
3. From the repo directory, run:
```sh
npm install
npm run dev
npm start
```
4. Open http://localhost:8080

Expand Down
2 changes: 1 addition & 1 deletion config/filters/render.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const MarkdownIt = require("markdown-it");

module.exports = async (content) => {
const md = new MarkdownIt();
const md = new MarkdownIt({ html: true });
return md.render(content);
};
4 changes: 1 addition & 3 deletions pages/travel-and-leave/travel-guide-table-of-contents.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ sidebar:

<!-- prettier-ignore-start -->
{% capture travel_content %}
{% renderTemplate 'liquid' %}
On July 13, 2021, GSA published <a href="{% page "/july-13-travel-guidance/" %}">updated travel guidance</a> for all employees.
{% endrenderTemplate %}
On July 13, 2021, GSA published [updated travel guidance]({% page "/july-13-travel-guidance/" %}) for all employees.
{% endcapture %}

{% include "alert.html" level:"info" heading:"Updated Travel Guidance for GSA Employees (07/13/2021)" content:travel_content %}
Expand Down