alshedivat / al-folio

A beautiful, simple, clean, and responsive Jekyll theme for academics
https://alshedivat.github.io/al-folio/
MIT License
10.55k stars 10.94k forks source link

code highlighter theme get overrided in distill blog post #1220

Open minranr opened 1 year ago

minranr commented 1 year ago

Acknowledge the following

Describe the bug code highlighter theme works on post with code but not distill blog post

image image

To Reproduce Steps to reproduce the behavior:

  1. Go to https://alshedivat.github.io/al-folio/blog/2021/distill/
  2. Go to https://alshedivat.github.io/al-folio/blog/2015/code/

Expected behavior

code highlighter theme works on distill-style blog post

System (please complete the following information):

george-gca commented 1 year ago

Note: it gives error even when using mardown syntax (```) with line numbers set on config.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

albertfgu commented 3 months ago

:+1: can this issue be re-opened? It seems like an important feature for distill-style blog posts

joe-lin-tech commented 2 months ago

It seems like the distill blog post uses the Prism syntax highlighter. To use the highlighter theme from the post with code instead, I just removed the Prism section in assets/js/distillpub/template.v2.js.

george-gca commented 2 months ago

@joe-lin-tech would you mind sending a PR for this? I believe it is a better solution to keep the theme more consistent.

hrhoo commented 1 month ago

I think this issue is still open..? I am having this issue.