Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Render inside Div blocks? #467

Closed
st4rdog opened this issue Nov 9, 2017 · 1 comment
Closed

Feature Request: Render inside Div blocks? #467

st4rdog opened this issue Nov 9, 2017 · 1 comment
Assignees
Labels

Comments

@st4rdog
Copy link

st4rdog commented Nov 9, 2017

markedjs/marked#488

I'm trying to add pagination to individual pages, like so:

---
---
<div class="page-break">
## Introduction
Paragraph.
</div>

<div class="page-break">
## Setup
Paragraph.
</div>

But it displays the headings as raw text. Using span will fix the headings, but displays a </span> as raw text.

It's mentioned in the linked issue that some markdown implementations do it this way:

<div markdown="1">
# Heading
</div>

If there's no solution, do you know of any way supported by github pages?

@gettalong gettalong self-assigned this Nov 9, 2017
@gettalong
Copy link
Owner

I don't see the problem since kramdown already supports the markdown="1" attribute. Your sample will result in the following output:

<div>
  <h1 id="heading">Heading</h1>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants