mirror of
https://github.com/Dadido3/go-typst.git
synced 2025-04-19 07:33:16 +00:00
Merge pull request #1 from faide/0.13.0
add support for 0.13.0 html feature
This commit is contained in:
commit
188f5c36cb
@ -19,6 +19,7 @@ const (
|
|||||||
OutputFormatPDF OutputFormat = "pdf"
|
OutputFormatPDF OutputFormat = "pdf"
|
||||||
OutputFormatPNG OutputFormat = "png"
|
OutputFormatPNG OutputFormat = "png"
|
||||||
OutputFormatSVG OutputFormat = "svg"
|
OutputFormatSVG OutputFormat = "svg"
|
||||||
|
OutputFormatHTML OutputFormat = "html" // this format is only available since 0.13.0
|
||||||
)
|
)
|
||||||
|
|
||||||
type CLIOptions struct {
|
type CLIOptions struct {
|
||||||
@ -98,6 +99,12 @@ func (c *CLIOptions) Args() (result []string) {
|
|||||||
|
|
||||||
if c.Format != OutputFormatAuto {
|
if c.Format != OutputFormatAuto {
|
||||||
result = append(result, "-f", string(c.Format))
|
result = append(result, "-f", string(c.Format))
|
||||||
|
if c.Format == OutputFormatHTML {
|
||||||
|
// this is specific to version 0.13.0 where html
|
||||||
|
// is a feature than need explicit activation
|
||||||
|
// we must remove this when html becomes standard
|
||||||
|
result = append(result, "--features", "html")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.PPI > 0 {
|
if c.PPI > 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user