Comments (2)
@seshrs the following:
remote_theme: eecs485staff/primer-spec
plugins:
- jekyll-remote-theme
markdown: GFM
did it for me: \
now works as line-break when viewed on GitHub Pages.
Both Chrome and Safari immediately download my .md files, so I never had local preview anyway. Thanks!
from primer-spec.
Thanks for reporting @eecs441staff! I dug a bit deeper, and I have some good news, some bad news and a potential alternative.
Good news: It's very easy to enable GitHub Flavored MarkDown (GFM) for your site! Simply add a markdown: GFM
option to your _config.yml
so that it looks something like this:
remote_theme: eecs485staff/primer-spec
plugins:
- jekyll-remote-theme
# The default MarkDown processor for Jekyll is actually 'kramdown'. Change to GFM if you prefer.
markdown: GFM
Bad news: If you make the change above, you will not be able to preview your site locally. It looks like Jekyll 3.8 has some bugs with the GFM parser dependency. It's fixed in Jekyll 4, but GitHub Pages hasn't upgraded their version of Jekyll yet.
Alternative: I know this isn't a great alternative, but another way to force a line-break is to add two spaces at the end of the line. For example:
This is on line 1
and this is a continuation of that line. But if you add two spaces -->
then this line gets broken!
Edit: Oops, looks like you knew this already.
I will update the Advanced Usage docs to explain how to use GFM on a Primer Spec site.
from primer-spec.
Related Issues (20)
- `script/server` requires specific shells HOT 7
- Bump header level styles in sidebar if needed HOT 1
- Primer Spec v2: Require deploy via GitHub Actions? HOT 1
- Task Lists: Use 'pointer' cursor on hover
- Multi color highlighting HOT 5
- Spooky icons even when Spooky theme not chosen HOT 2
- Data-highlight inside callout HOT 2
- Sidebar links broken in preview HOT 5
- Dark mode code blocks flash when settings is closed HOT 1
- Markdown tables are not rendered HOT 2
- Copy button in enhanced codeblock omits whitespace HOT 3
- Enhanced code block copy-paste trailing newline
- [PR Previews] PDFs do not generate with correct styles the first time.
- [Code blocks] Overflow gets clipped in print previews
- [Enhanced code blocks] No-line-numbers variant doesn't occupy full width
- [Enhanced code blocks] Code block in EECS 280 P1 doesn't highlight lines HOT 1
- [Enhanced Code Blocks] Line-by-line copying excludes empty lines
- Local render Liquid Exception HOT 6
- Copying an enhanced codeblock duplicates newlines HOT 1
- Sidebar has wrong URLs in PR previews HOT 1
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 primer-spec.