dream-num / obsidian-univer

Create, edit, and view spreadsheets and documents in various formats like Excel and Word directly within your knowledge base.
https://univer.ai
Apache License 2.0
80 stars 4 forks source link

wrong render of Dockerfile #93

Open evanchurov opened 1 month ago

evanchurov commented 1 month ago

Describe the bug

On the fresh obsidian vault with only Univer installed, there is the bug with rendering of Dockerfile format. Screenshot: image Note the "COPY --from ..." stretched to the right.

Steps to reproduce

  1. Install the Univer plugin
  2. Insert the following Dockerfile:
    FROM node:18 AS build
    WORKDIR /usr/src/app
    COPY package*.json ./
    RUN npm install
    COPY . .
    RUN if [ -f package.json ] && grep -q "build" package.json; then npm run build; else echo "No build step"; fi
    FROM node:18-slim
    ENV NODE_ENV=production
    WORKDIR /usr/src/app
    COPY package*.json ./
    RUN npm ci --only=production
    RUN npm install express --save
    COPY --from=build /usr/src/app .
    EXPOSE 8080
    CMD ["node", "app.js"]

Expected behavior

The Dockerfile should not stretch. It havs to be rendered as is with no wrong formatting.

Are you using the mobile app?

No

Obsidian debug info

SYSTEM INFO: Obsidian version: v1.6.7 Installer version: v1.6.7 Operating system: #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 6.8.0-45-generic Login status: not logged in Insider build toggle: off Live preview: on Base theme: adapt to system Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 1 Plugins enabled: 1 1: Univer v1.1.5

RECOMMENDATIONS: Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Relevant log output

No response