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

Make it possible to Indent Code Blocks #11

Closed
zicklag opened this issue Dec 4, 2019 · 6 comments · Fixed by #58
Closed

Make it possible to Indent Code Blocks #11

zicklag opened this issue Dec 4, 2019 · 6 comments · Fixed by #58
Assignees
Labels
enhancement New feature or request

Comments

@zicklag
Copy link

zicklag commented Dec 4, 2019

Is there a way to indent code blocks? I see that you can set the alignment to left, center, or right, but can I add four spaces indent to a left-aligned code block?

@Canop
Copy link
Owner

Canop commented Dec 4, 2019

There's no way currently. I'll take this question as a request for addition.

@Canop Canop changed the title Is There a Way to Indent Code Blocks? Make it possible to Indent Code Blocks Dec 4, 2019
@Canop Canop self-assigned this Dec 4, 2019
@Canop Canop added the enhancement New feature or request label Dec 4, 2019
@andrewtc
Copy link

andrewtc commented Jan 6, 2024

If you are looking for someone to take this on, I may be willing to provide dev support. I was wanting this feature the other day for a personal project of mine.

@Canop
Copy link
Owner

Canop commented Jan 6, 2024

@andrewtc @zicklag tests of #58 would be welcome

@zicklag
Copy link
Author

zicklag commented Jan 8, 2024

@Canop tested and it looks good! ✅

@Canop
Copy link
Owner

Canop commented Jan 8, 2024

Thanks. I'll merge it, then.

The fact the wrapping functions takes the skin as parameter will enable a few other changes.

@Canop Canop closed this as completed in #58 Jan 8, 2024
Canop added a commit that referenced this issue Jan 8, 2024
This lets you define left and right margins for paragraphs, code blocks, tables, etc.

Those margins don't apply in table cells, and are completely omitted when they would reduce the available width below 3.

The indented-code example shows how to use the left margin to "indent" code blocks.

Fix #11
@Canop
Copy link
Owner

Canop commented Jan 8, 2024

Available in 0.27.0

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

Successfully merging a pull request may close this issue.

3 participants