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

Migrate the justified paragraphs extension to an NPM #4044

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dbolack-ab
Copy link
Collaborator

@dbolack-ab dbolack-ab commented Feb 11, 2025

Description

Relocates the paragraph justification markers to their own module.

https://github.com/dbolack-ab/marked-justified-paragraphs

Related Issues or Discussions

Relates to #4035

QA Instructions, Screenshots, Recordings

Reviewer Checklist

Replace the list below with specific features you want reviewers to look at.

*Reviewers, refer to this list when testing features, or suggest new items *

  • Verify new features are functional
    • Verify left justification still works :-
    • Verify center justification still works :-:
    • Verify right justification still works -:
    • Verify code-blocked justifications are ignored.
  • Identify opportunities for simplification and refactoring
  • Check for code legibility and appropriate comments

@calculuschild
Copy link
Member

I would like to see the NPM package for this before merging.

@dbolack-ab dbolack-ab added the 🔍 R0 - Needs first review 👀 PR ready but has not been reviewed label Feb 12, 2025
@@ -7,6 +7,7 @@ import MarkedExtendedTables from 'marked-extended-tables';
import { markedSmartypantsLite as MarkedSmartypantsLite } from 'marked-smartypants-lite';
import { gfmHeadingId as MarkedGFMHeadingId, resetHeadings as MarkedGFMResetHeadingIDs } from 'marked-gfm-heading-id';
import { markedEmoji as MarkedEmojis } from 'marked-emoji';
import MarkedJustifiedParagraphs from 'marked-justified-paragraphs';
Copy link
Member

@calculuschild calculuschild Feb 14, 2025

Choose a reason for hiding this comment

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

We might rename this extension to "aligned paragraphs" or something. We support left align, right align, and center align. Justified is the one alignment type that isn't supported.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

When I worked in print, these were "Right Justified, Left Justified, Center Justified, or Fully ( which we don't use here ) Justified"

It is the proper term. HTML properties name it weird.

Copy link
Member

Choose a reason for hiding this comment

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

I can't find a single reference online calling it "right justified, left justified", but we can keep it for now; it's not critical.

When we transfer this over to the naturalcrit org we can re-evaluate. Ideally it would share the same naming conventions as the rest of the Markdown spec just for consistency.

@calculuschild
Copy link
Member

Just one issue in the package, on the readme:

dbolack-ab/marked-justified-paragraphs#1

@calculuschild calculuschild added 🔍 R3 - Reviewed - Awaiting Fixes 🔧 PR is okayed but needs fixes before merging and removed 🔍 R0 - Needs first review 👀 PR ready but has not been reviewed labels Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔍 R3 - Reviewed - Awaiting Fixes 🔧 PR is okayed but needs fixes before merging
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

3 participants