Git Product home page Git Product logo

astro-asciidoc's People

Contributors

renovate[bot] avatar shishkin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

advanced-astro

astro-asciidoc's Issues

Integration with starlight

I'm trying to set up an astro starlight project with astro-asciidoc but I'm having trouble with it. Is it possible?

Handle includes in the document frontmatter

I'd like to do the following:

= Document Title
include::./attributes-settings.adoc[]
include::./attributes-urls.adoc[]

include::./chapter/chapter-1.adoc

There's two problems here:

  1. Document frontmatter isn't loaded
  2. The nested ./chapter/chapter-1.adoc isn't found when rendering the webpage

I've hardcoded the :layout: @layouts/Layout.astro in the chapter-1.adoc file to ensure it knows how to render, though I'd rather get the frontmatter includes to work there too. VSCode is able to preview the .adoc includes properly.

Doesn't work in Astro 3 anymore

This integration doesn't with in Astro 3 anymore. Astro refuses to render the generated/transformed AsciiDoc JSX page:

 error   Unable to render `Content`.

  No valid renderer was found for this file extension.

I was unable to troubleshoot the issue and raised it with Astro team a few times (without any response so far):

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @types/prettier Unavailable

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/ci.yaml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/release.yaml
  • actions/checkout v4
  • actions/setup-node v4
npm
example/package.json
  • astro 4.12.2
  • shiki 0.14.7
  • typescript 5.5.3
package.json
  • @asciidoctor/core 3.0.4
  • @commitlint/cli 19.3.0
  • @commitlint/config-conventional 19.2.2
  • @release-it/conventional-changelog 8.0.1
  • @types/eslint 8.56.10
  • @astrojs/check 0.8.2
  • @types/prettier 3.0.0
  • @typescript-eslint/eslint-plugin 7.16.1
  • @typescript-eslint/parser 7.16.1
  • astro 4.12.2
  • eslint-config-prettier 9.1.0
  • eslint-plugin-astro 1.2.3
  • eslint-plugin-prettier 5.2.1
  • husky 9.1.1
  • prettier 3.3.3
  • prettier-plugin-astro 0.14.1
  • release-it 17.6.0
  • typescript 5.5.3
  • unbuild 2.0.0
  • astro ^2.8.0 || ^3.0.0 || ^4.0.0
  • vite ^4.3.9 || ^5.0.0
nvm
.nvmrc

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near onth"], }

Prototype pollution by Opal

It seems that running Asciidoctor.js does pollute Javascript native object prototypes that leads to weird bugs. For example, this code adds a stub $id method to Array prototype so all arrays suddenly get it:

import asciidoctor from "@asciidoctor/core";

asciidoctor();

console.log([].$id);
// [Function: method_missing_stub] { '$$stub': true }
console.log(Array.prototype.$id);
// [Function: method_missing_stub] { '$$stub': true }

I discover a bug with this in ajv schema validator that runs into issues when it encounters an array of schemas with a present $id property, which it only expects to find on a single schema, not array.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.