Skip to content

handling for new link format in article data#152

Open
Arushi55 wants to merge 1 commit intomainfrom
update-link-handling
Open

handling for new link format in article data#152
Arushi55 wants to merge 1 commit intomainfrom
update-link-handling

Conversation

@Arushi55
Copy link
Contributor

Front End Pull Request

Brief Summary

  • Changed article template rendering of links to comply with the new article data format

@Arushi55 Arushi55 requested a review from a team as a code owner February 25, 2026 19:03
Copy link
Member

@ethanszeto ethanszeto left a comment

Choose a reason for hiding this comment

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

  1. Small thing about spaces included in the link itself -- looks a little bit strange.
  2. What happens if a quote is a new paragraph? or between paragraphs? Right now the quote is embedded into the surrounded body paragraphs, however, it would be weird if the link spanned two distinct paragraphs and merged then.

if (item.contentType === "link") {
paragraphSegments.push({
type: "link",
text: " " + item.content + " ",
Copy link
Member

Choose a reason for hiding this comment

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

It looks kinda funky with the rbuffespaces being incl uded in the text itself

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, the links look weird, but the current data doesn't have spaces, so they need to be added somewhere.
Also, with the quotes, it's in a div, so the new line is automatic.
Links don't span paragraphs to my understanding.

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.

2 participants