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

How to add more 1 line break in content? #312

Closed
ngtrian opened this issue May 6, 2017 · 5 comments
Closed

How to add more 1 line break in content? #312

ngtrian opened this issue May 6, 2017 · 5 comments

Comments

@ngtrian
Copy link

ngtrian commented May 6, 2017

How to add more 1 line break in content? I have create 2, 3, or 4 line break, but result still is 1 line break.

System information

  • OS: Windows 10
  • Browser: Chrome
@facelessuser
Copy link
Contributor

Can you provide an example to help make your question more clear?

@ngtrian ngtrian changed the title How to add more 1 line break? How to add more 1 line break in content? May 6, 2017
@ngtrian
Copy link
Author

ngtrian commented May 6, 2017

i want create more one line break word in content (enter twice to insert newline)

line break beetween title and line 1 don't remain.

ex:
my file markdown:

title




line 1

line 2

line3

result on site:

title

line 1

line 2

line3

@ngtrian
Copy link
Author

ngtrian commented May 6, 2017

now I'm using custom html <br> in content markdown to resolve this problem

@facelessuser
Copy link
Contributor

Yes, you can always insert <br>. There is also this extension http://facelessuser.github.io/pymdown-extensions/extensions/escapeall/, which allows you to escape new lines and turn them into <br> if you enable hardbreak.

So you could simply do the following:

title\
\
\
\
\
line 1

Anyways, so either inserting <br> manually can get you there, or using an extension. If you are already using pymdown-extensions, you can just enable pymdownx.escapeall and enable hardbreak.

@squidfunk
Copy link
Owner

Thanks @facelessuser for answering this.

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

No branches or pull requests

3 participants