[PR #355] [CLOSED] [WIP] views: fix support of language in markdown fenced code block #5633

Closed
opened 2026-02-05 10:12:53 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/355
Author: @Kdecherf
Created: 4/6/2017
Status: Closed

Base: masterHead: issue-296


📝 Commits (1)

  • feba9fe views: fix support of language in markdown fenced code block

📊 Changes

2 files changed (+10 additions, -5 deletions)

View changed files

📝 resources/assets/js/directives.js (+4 -0)
📝 resources/views/partials/highlight.blade.php (+6 -5)

📄 Description

This PR fixes the support of language in markdown fenced code blocks by calling hljs.highlightBlock() on pre code instead of pre.

Fixes #296


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/355 **Author:** [@Kdecherf](https://github.com/Kdecherf) **Created:** 4/6/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `issue-296` --- ### 📝 Commits (1) - [`feba9fe`](https://github.com/BookStackApp/BookStack/commit/feba9fe02fe6bc8345bf326ee915e982076c5b01) views: fix support of language in markdown fenced code block ### 📊 Changes **2 files changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `resources/assets/js/directives.js` (+4 -0) 📝 `resources/views/partials/highlight.blade.php` (+6 -5) </details> ### 📄 Description This PR fixes the support of language in markdown fenced code blocks by calling `hljs.highlightBlock()` on `pre code` instead of `pre`. Fixes #296 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:12:53 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5633