Skip to content
Open
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
5 changes: 3 additions & 2 deletions components/slides/Preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function Preview({ back }) {
const [downloadAlertVisible, setDownloadAlertVisible] = useState(false);
const gprmStore = useGPRMStore();
var md = require("markdown-it")({
html: true,
html: false,
linkify: true,
typographer: true,
breaks: true,
Expand All @@ -35,8 +35,9 @@ export default function Preview({ back }) {
// Checking if elements exists
if (links.length > 0) {
links.forEach((link) => {
// adding attribute target
// adding secure link attributes
link.setAttribute("target", "_blank");
link.setAttribute("rel", "noopener noreferrer nofollow");
});
}
}, 300);
Expand Down