GithubHelp home page GithubHelp logo

Comments (6)

itewk avatar itewk commented on June 20, 2024 1

@ggrossetie took me a sec to figure out the settings, but got it working. thanks.

for anyone else who stumbles on this:

/* import default asciidoc style sheets */
@import "https://fonts.googleapis.com/css?family=Open+Sans:300,300italic,400,400italic,600,600italic%7CNoto+Serif:400,400italic,700,700italic%7CDroid+Sans+Mono:400,700";
@import "https://cdn.jsdelivr.net/gh/asciidoctor/[email protected]/data/stylesheets/asciidoctor-default.css";

/* get rid of max-width */
#header,#content,#footnotes,#footer{
    max-width:none;
}

from asciidoctor-vscode.

ggrossetie avatar ggrossetie commented on June 20, 2024

What do you mean by the document width is 100%?

image

Asciidoctor built-in/default style has a max-width with margin: auto.

from asciidoctor-vscode.

itewk avatar itewk commented on June 20, 2024

im saying when i do an asciidoc myfile.adoc and it generates an html file, then the widith consumes the entire browser area, but the preview in the plugin, is fixed width like you have pictured.

from asciidoctor-vscode.

ggrossetie avatar ggrossetie commented on June 20, 2024

asciidoc is the legacy processor for AsciiDoc: https://asciidoc-py.github.io/
This extension is using Asciidoctor. I guess you can provide a custom CSS if you want to remove the max-width.

Closing since this is intended. Please ask usage question at https://asciidoctor.zulipchat.com/

from asciidoctor-vscode.

itewk avatar itewk commented on June 20, 2024

Instructions for providing the custom css somewhere?

from asciidoctor-vscode.

ggrossetie avatar ggrossetie commented on June 20, 2024

ℹī¸ README: https://github.com/asciidoctor/asciidoctor-vscode#how-to-use

from asciidoctor-vscode.

Related Issues (20)

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.