Comments (10)
Oh, I actually encountered that issue too!
@maximevaillancourt This can be simply reproduced by adding {% include notes_graph.html %}
inside a .md file. Adding this in a .html file (like it is the case by default) does not exhibit this issue.
The culprit is _plugins/markdown-highlighter.rb
, which mistakenly matches some code from notes_graph.html's JavaScript and attempts to add <mark>
tags in the middle of it.
from digital-garden-jekyll-template.
You're entirely right: I had to run to an appointment and pushed a lazy "fix". Let me take a deeper look now. Thanks for mentioning it!
from digital-garden-jekyll-template.
OK, wait, I know what happened
The markdown highlighter is running on the notes_graph file because it's included in notes doc.content.gsub!(/==+([^ ](.*?)?[^ .=]?)==+/, "<mark>\\1</mark>")
I'm going to add a next line for notes:
Jekyll::Hooks.register [:notes], :post_convert do |doc|
next if doc.path.start_with?('_includes/')
replace(doc)
end
This way, we can include the notes graph in arbitrary notes as well.
from digital-garden-jekyll-template.
Yeah, I don't really know ruby, that obviously won't work, since this not a note, it's just being included from a note. My hack of not using strict equality seems to work, so.....
from digital-garden-jekyll-template.
I'm getting the same syntax error. What edit did you make that you found actually worked?
from digital-garden-jekyll-template.
Thank you for the bug report, @bmann. I'm unable to replicate the bug, could you help me by providing the following information?
- Where does
SyntaxError: Invalid regular expression: missing /
show up? Could you provide a screenshot? - Echoing what @boundangel asked, were you able to fix the problem? If so, how?
Thanks!
from digital-garden-jekyll-template.
Thanks everyone for your input! Fixed in #155.
from digital-garden-jekyll-template.
I wouldn't consider that fixed :( (or at least, the underlying issue)
Simply having such a piece of code in a .md file is enough to break its rendering.
from digital-garden-jekyll-template.
I think we're in a better place with #156 now ๐
from digital-garden-jekyll-template.
Thank you so much!! Don't feel sorry for having done a lazy fix on a Sunday lool, I quite frankly did not expect anything to be solved today.
Thank you for everything ๐งก
from digital-garden-jekyll-template.
Related Issues (20)
- How can I change the table of contents link to internal link?
- Emoji Filenames Break The Template HOT 2
- Links with quotes in them don't work HOT 1
- link-previews.html has embedded SCSS
- <!DOCTYPE> tag being generated with content HOT 1
- Failed to build: liquid exception HOT 4
- `note.html` breaks with `{{ content }}` HOT 6
- Link with accent (รฉร รจโฆ) doesn't work HOT 1
- Graph does work properly when zoomed or moved HOT 2
- notes_graph.json cannot be found, github-pages' build fails HOT 1
- github-pages can't satisfy your Gemfile's dependencies HOT 1
- Ask for ID HOT 1
- Easy Github Pages
- Github Sponsor HOT 1
- basic jekyll question HOT 3
- how to train your graph
- Documentation
- Fail to deploy on the Cloudflare Pages HOT 1
- Can't preview like obsidian's [[foo#^bar]] feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digital-garden-jekyll-template.