Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

How to integrate mathematical formula display plug-in 'katex' #25

Open
navisoftware opened this issue Jul 14, 2021 · 2 comments
Open

How to integrate mathematical formula display plug-in 'katex' #25

navisoftware opened this issue Jul 14, 2021 · 2 comments

Comments

@navisoftware
Copy link

I need to use mathematical formula. Could you please tell me how to integrate Katex in the project to display mathematical formula?

@cipchk
Copy link
Owner

cipchk commented Jul 15, 2021

You can use toolbar in options, like this:

// Customize all information and/or add your own icons
var simplemde = new SimpleMDE({
	toolbar: [
		{
			name: "custom",
			action: function customFunction(editor){
				// Add your own code
			},
			className: "fa fa-star",
			title: "Custom Button",
		},
		"|", // Separator
		...
	],
});

@cipchk
Copy link
Owner

cipchk commented Jul 17, 2021

@navisoftware I recommend using Vditor instead of simplemde, About angular version for @ng-util/markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants