question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider adding `fill` to Markdown

See original GitHub issue

Expected Behavior

As a user of the library I would like to have a fill option when rendering markdown using the Markdown component.

The fill option can be used in the Paragraph component, and I would expect to have the same behavior using Markdown.

Actual Behavior

Right now I have no way to make the paragraph fill the width of the container 😿

A workaround would be to use component override, but I’d still prefer to have the same behavior as the Paragraph component.

URL, screen shot, or Codepen exhibiting the issue

Visit the Storybook under the Markdown section.

Steps to Reproduce

Use the Markdown component 😃

Your Environment

  • Grommet version: v2
  • Browser Name and version: any
  • Operating System and version (desktop or mobile): any

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ShimiSuncommented, May 4, 2020

Thank you for reporting, you can use the options prop to control the fill property.

0reactions
vrdecommented, Nov 27, 2019

Do you mean adding a fill prop in the Markdown component that we forward to the Paragraph?

Exactly 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add empty spaces into MD markdown readme on ...
I tried adding <br /> tag to fix the new string start, now it works, but I don't understand how to add spaces...
Read more >
Handbook Markdown Guide - GitLab
To insert images to your markdown file, use the markup ![ALT](/path/image.ext) . The path can either be relative to the website, or a...
Read more >
Fill Project with Markdown file - Support - Agenda Community
So I exported them to text, formatted the text as Markdown and imported ... I think we added that, but I'm not 100%...
Read more >
Markdown Basics — markdown-guide 0.1 documentation
To enclose a segment of text in blockquotes, one must prefix each written line with a greater-than sign. Markdown: > ## Blockquoted header...
Read more >
About `fill-paragraph` in `markdown-mode`
The paragraph is already filled. If you add another SPC char after the period ( . ) then you see the paragraph filled...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found