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

Rich text test #5

Merged
merged 2 commits into from
May 22, 2024
Merged

Rich text test #5

merged 2 commits into from
May 22, 2024

Conversation

kattsun44
Copy link
Owner

@kattsun44 kattsun44 commented May 22, 2024

やったこと

実行結果
% node dist/richText.js
Login with kattsun.dev
rt.text:  This is RichText Test by @kattsun.dev. My Github URL is https://github.com/kattsun44.
rt.facets:
[
  {
    '$type': 'app.bsky.richtext.facet',
    index: { byteStart: 25, byteEnd: 37 },
    features: [
      {
        '$type': 'app.bsky.richtext.facet#mention',
        did: 'did:plc:adqi2nz2d3a7ozl3rttwdz4e'
      },
      [length]: 1
    ]
  },
  {
    index: { byteStart: 56, byteEnd: 84 },
    features: [
      {
        '$type': 'app.bsky.richtext.facet#link',
        uri: 'https://github.com/kattsun44'
      },
      [length]: 1
    ]
  },
  [length]: 2
]
rt2.text:  Hello, World! This is RichText Test by @kattsun.dev.
rt2.facets:
[
  {
    '$type': 'app.bsky.richtext.facet',
    index: { byteStart: 0, byteEnd: 5 },
    features: [
      {
        '$type': 'app.bsky.richtext.facet#link',
        uri: 'https://github.com/kattsun44'
      },
      [length]: 1
    ]
  },
  [length]: 1
]

ref: console.logで[Object]が出たときはconsole.log('%o', obj)という選択肢もある

@kattsun44 kattsun44 self-assigned this May 22, 2024
@kattsun44 kattsun44 marked this pull request as ready for review May 22, 2024 11:25
@kattsun44 kattsun44 merged commit b998263 into main May 22, 2024
@kattsun44 kattsun44 deleted the rich-text-test branch May 22, 2024 11:28
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