Skip to content

KaTeXを導入したい #2

@sapphi-red

Description

@sapphi-red

goでmarkdownが変換されてるようなのでシンタックスハイライトみたいな対応の仕方が必要そう

https://github.com/yuin/goldmark

const $previewPanel = $form.find(`.tab.segment[data-tab="${$tabMenu.data('preview')}"]`);
$previewPanel.html(data);
emojify.run($previewPanel[0]);
$('pre code', $previewPanel[0]).each(function () {
hljs.highlightBlock(this);
});
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions