From 36969c140f92de55f1ad36a03f869218e246f8a9 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 23 Oct 2020 16:58:42 +0530 Subject: [PATCH] Admonition.jsx - Allow custom id to link to a note --- components/Admonition.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Admonition.jsx b/components/Admonition.jsx index 83bf86d..7182b8b 100644 --- a/components/Admonition.jsx +++ b/components/Admonition.jsx @@ -2,7 +2,7 @@ import React, { Component } from "react"; export default class Admonition extends Component { render() { - const { type, iconType, title, children, addIfmClass } = this.props; + const { type, iconType, title, id, children, addIfmClass } = this.props; let wrapperClasses = ["admonition", `admonition-${type}`]; if (addIfmClass) { @@ -11,7 +11,7 @@ export default class Admonition extends Component { } return ( -
+
{returnIcon(type, iconType)}