Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

could you include an example of importing a function from a script in the README?

Đang mở
#35 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
42/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
documentation

Hướng nghiên cứu

Start with the README and review how js-engine currently loads scripts. Use the reported nifty-links.js path and its exported getFromOpenGraph(url) function as the example, including the expected rendered HTML result and the related CSS path. Done means a newcomer can follow the README to reproduce this setup.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hi,

I'm trying to write modular JavaScript and have one file for each script. It's not working out for me ;)

I'll explain more, but pretty sure it would be helpful just to show how it would work in your readme.

Okay I have nifty-links.js
vault/js/scripts/nifty-links
that has an exported function called "getFromOpenGraph(url)"

I have a nifty-links.css
./obsidian/snippets/nifty-links.css

This all works using a basic liveserver in a browser.

I want to use js-engine to call that function and pass it a URL, and then what should come back is rendered HTML.

Ngôn ngữ chính
TypeScript
Star
191
Fork
15
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mProjectsCode/obsidian-js-engine-plugin

Tất cả issue của mProjectsCode/obsidian-js-engine-plugin

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.