Skip to content

fix: readability of markdown files#830

Open
vaga wants to merge 2 commits intohistoire-dev:mainfrom
vaga:fix-markdown-style
Open

fix: readability of markdown files#830
vaga wants to merge 2 commits intohistoire-dev:mainfrom
vaga:fix-markdown-style

Conversation

@vaga
Copy link
Copy Markdown

@vaga vaga commented Feb 22, 2026

Description

This PR improves the readability of Markdown documentation by refining the visual consistency across different themes.

Additional context

  • Fixed blockquote styling: The blockquote no longer remains in light mode when the dark theme is active.
  • Table borders: Added previously missing borders to tables.
  • Simplified styling: The overall styling has been simplified for now.

I'm open to feedback and further improvements. Let me know if you have any suggestions, and I'll be happy to implement them.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • If it's a new feature, provide a convincing reason to add it. Ideally, you should open a suggestion issue first and have it approved before working on it.
  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the Commit Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@codesandbox
Copy link
Copy Markdown

codesandbox bot commented Feb 22, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 22, 2026

Deploy Preview for histoire-site ready!

Name Link
🔨 Latest commit e5134e3
🔍 Latest deploy log https://app.netlify.com/projects/histoire-site/deploys/69bac742abe78700084bf37c
😎 Deploy Preview https://deploy-preview-830--histoire-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 22, 2026

Deploy Preview for histoire-controls ready!

Name Link
🔨 Latest commit e5134e3
🔍 Latest deploy log https://app.netlify.com/projects/histoire-controls/deploys/69bac742306770000874d731
😎 Deploy Preview https://deploy-preview-830--histoire-controls.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 22, 2026

Deploy Preview for histoire-examples-vue3 ready!

Name Link
🔨 Latest commit e5134e3
🔍 Latest deploy log https://app.netlify.com/projects/histoire-examples-vue3/deploys/69bac742622a280008eccb34
😎 Deploy Preview https://deploy-preview-830--histoire-examples-vue3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 22, 2026

Deploy Preview for histoire-examples-svelte3 ready!

Name Link
🔨 Latest commit e5134e3
🔍 Latest deploy log https://app.netlify.com/projects/histoire-examples-svelte3/deploys/69bac7424a0891000795d96e
😎 Deploy Preview https://deploy-preview-830--histoire-examples-svelte3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello @vaga, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on enhancing the visual presentation and consistency of Markdown files within the application. By adjusting typography styles and ensuring proper theme application for elements like blockquotes and tables, the changes aim to provide a more cohesive and readable experience for documentation across various themes.

Highlights

  • Improved Markdown Readability: The pull request refines the visual consistency of Markdown documentation across different themes, enhancing overall readability.
  • Fixed Blockquote Styling: Addressed an issue where blockquotes remained in light mode when the dark theme was active, ensuring proper theme application.
  • Added Table Borders: Previously missing borders have been added to tables within Markdown content for better visual structure.
  • Simplified Styling: The overall styling for Markdown elements has been simplified, focusing on core readability improvements.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • examples/vue3/src/MarkdownFile.story.md
    • Added comprehensive Markdown syntax examples to the story file for testing and demonstration purposes.
  • packages/histoire-app/src/app/style/main.pcss
    • Removed default border-style and border-color from the global ::after pseudo-element reset.
  • packages/histoire-app/tailwind.config.cjs
    • Refactored typography plugin configuration, removing specific styles for links, headings, list items, and inline code.
    • Introduced custom styling for tables, table headers, table rows, and blockquotes to ensure proper border collapse and margins.
    • Updated and added new theme variables for both light and dark modes, covering links, pre-backgrounds, quote borders, horizontal rules, and table borders.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

The pull request significantly enhances the readability of Markdown documentation by improving visual consistency across themes, fixing blockquote styling, and adding table borders. The changes are well-implemented and address the stated goals effectively.

Comment on lines +5 to +142
---
__Advertisement :)__

- __[pica](https://nodeca.github.io/pica/demo/)__ - high quality and fast image
resize in browser.
- __[babelfish](https://github.com/nodeca/babelfish/)__ - developer friendly
i18n with plurals support and easy syntax.

You will like those projects!

---

# h1 Heading 8-)
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading

## Horizontal Rules

___

---

***

## Typographic replacements

Enable typographer option to see result.

(c) (C) (r) (R) (tm) (TM) (p) (P) +-

test.. test... test..... test?..... test!....

!!!!!! ???? ,, -- ---

"Smartypants, double quotes" and 'single quotes'

## Emphasis

**This is bold text**

__This is bold text__

*This is italic text*

_This is italic text_

~~Strikethrough~~

## Blockquotes

> Blockquotes can also be nested...
>> ...by using additional greater-than signs right next to each other...
> > > ...or with spaces between arrows.

## Lists

Unordered

+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Facilisis in pretium nisl aliquet
- Nulla volutpat aliquam velit
+ Very easy!

Ordered

1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa

1. You can use sequential numbers...
1. ...or keep all the numbers as `1.`

Start numbering with offset:

57. foo
1. bar

## Code

Inline `code`

Indented code

// Some comments
line 1 of code
line 2 of code
line 3 of code

Block code "fences"

```
Sample text here...
```

Syntax highlighting

``` js
const foo = function (bar) {
return bar++
}

console.warn(foo(5))
```

## Tables

| Option | Description |
| ------ | ----------- |
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |

Right aligned columns

| Option | Description |
| ------:| -----------:|
| data | path to data files to supply the data that will be passed into templates. |
| engine | engine to be used for processing templates. Handlebars is the default. |
| ext | extension to be used for dest files. |

## Links

[link text](http://dev.nodeca.com)

[link with title](http://nodeca.github.io/pica/demo/ "title text!")

Autoconverted link https://github.com/nodeca/pica (enable linkify to see)

## Images

![Minion](https://octodex.github.com/images/minion.png)
![Stormtroopocat](https://octodex.github.com/images/stormtroopocat.jpg "The Stormtroopocat")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding extensive markdown content to a story file directly can make the file very long and potentially harder to maintain. While this is for demonstration purposes, consider if a separate .md file linked to the story would be more appropriate for very large documentation sections in a real-world scenario to keep story files focused on the story itself.

border-width: 0;
border-style: solid;
border-color: #e5e7eb;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The removal of border-style: solid; and border-color: #e5e7eb; from the universal ::after pseudo-element is a significant change. While this might be intended to simplify styling as mentioned in the PR description, it could potentially affect other elements that rely on these default border styles. It's good that the tailwind.config.cjs file explicitly adds borderStyle: 'solid' for thead, tr, blockquote, but a more targeted removal here might be safer if other components implicitly relied on these global defaults.

Comment on lines 85 to 88
'blockquote': {
'marginLeft': 0,
'marginRight': 0,
'backgroundColor': theme('colors.gray-100'),
'padding': '.25rem .375rem',

'& p:first-child': {
marginTop: 0,
},

'& p:last-child': {
marginBottom: 0,
},

'.dark &': {
backgroundColor: theme('colors.gray-750'),
},
marginInlineStart: '0.375rem',
marginInlineEnd: '0.375rem',
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The removal of specific styling for a tags, h1-h4, th, li, and code elements from the Tailwind typography plugin's DEFAULT CSS block means these elements will now rely solely on Tailwind's default typography styles or other global styles. While the PR aims for simplified styling, ensure that the new default styles for these elements are visually consistent and meet the desired readability standards across all themes. For example, the previous a tag styling included textDecoration: 'none' and &:hover: { textDecoration: 'underline' }, which provided a clear visual cue for links. The new setup might lose this specific behavior.

Comment on lines +92 to +93
'--tw-prose-links': theme('colors.primary-500'),
'--tw-prose-pre-bg': theme('colors.gray-800'),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The previous blockquote styling included backgroundColor and padding which provided a distinct visual appearance. The new marginInlineStart and marginInlineEnd only control the horizontal spacing. While the PR description mentions simplifying styling, ensure that the new blockquote appearance is still clear and distinguishable, especially in different themes, as the background color was explicitly handled for dark mode previously.

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

Successfully merging this pull request may close these issues.

1 participant