Skip to content

Commit

Permalink
fixing Markdown heading (#6588)
Browse files Browse the repository at this point in the history
Co-authored-by: David Glick <[email protected]>
  • Loading branch information
Shyam-Raghuwanshi and davisagli authored Jan 18, 2025
1 parent ae58c67 commit 892a1d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/volto-slate/news/6588.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed keyboard shortcuts for typing headings using Markdown notation. @Shyam-Raghuwanshi
4 changes: 2 additions & 2 deletions packages/volto-slate/src/blocks/Text/MarkdownIntroduction.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const MarkdownIntroduction = (props) => {
<Segment secondary attached style={{ fontFamily: 'monospace' }}>
<List>
<List.Item key={1} style={{ fontSize: 'xx-large' }}>
# Title
## Heading
</List.Item>
<List.Item key={2} style={{ fontSize: 'x-large' }}>
## Subtitle
### Subheading
</List.Item>

<List.Item key={3} style={{ paddingTop: '1rem' }}>
Expand Down
4 changes: 2 additions & 2 deletions packages/volto-slate/src/editor/plugins/Markdown/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export const localToggleList = (editor, format) => {
export const autoformatRules = [
{
type: H2,
markup: '#',
markup: '##',
},
{
type: H3,
markup: '##',
markup: '###',
},
{
type: LI,
Expand Down

0 comments on commit 892a1d1

Please sign in to comment.