Comments (6)
There is a headless mode command line flag (-n
or --no-browser
) you can use, which will print the URLs out but not attempt to open a web browser. This isn't documented in the README
however, so changing this to a feature request to document it.
from md2googleslides.
ok cool - is there anyway to pre-auth the app? cos even if you use the -n
arg, you get asked to authorise the app and enter in the code. eg:
sudo docker logs 70881ae9a5bb
Authorize this app by visiting this url:
https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpresentations&login_hint=default&response_type=code&client_id=<client_id_string>
Enter the code here: %
I am also using this as slides.md
and getting a #comment
error?:
# This is a title slide
## Your name here
---
# This is a section title
---
# Section title & body slide
## This is a subtitle
This is the body
---
# Title & body slide
This is the slide body.
---
# This is the main point {.big}
---
# 100% {.big}
This is the body
---
# Two column layout
This is the left column
{.column}
This is the right column
---
# Slides can have images
![](https://placekitten.com/900/900)
---
# Slides can have background images
![](https://placekitten.com/1600/900){.background}
---
# Slides can have videos
@[youtube](MG8KADiRbOU)
---
# Slide title
![](https://placekitten.com/1600/900){.background}
<!--
These are speaker notes.
-->
---
**Bold**, *italics*, and ~~strikethrough~~ may be used.
Ordered lists:
1. Item 1
1. Item 2
1. Item 2.1
Unordered lists:
* Item 1
* Item 2
* Item 2.1
---
### I :heart: cats
:heart_eyes_cat:
---
### Hello World
```javascript
console.log('Hello world');
Error:
Unable to generate slides: Error: Unsupported inline HTML element: #comment
at inlineTokenRules.html_inline (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:274:23)
at processMarkdownToken (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:84:9)
at inlineTokenRules.inline (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:229:13)
at processMarkdownToken (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:84:9)
at processTokens (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:73:9)
at extractSlides (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:61:5)
at SlideGenerator.generateFromMarkdown (/usr/lib/node_modules/md2gslides/lib/slide_generator.js:86:27)
at generateSlides (/usr/lib/node_modules/md2gslides/bin/md2gslides.js:179:27)
at tryCallOne (/usr/lib/node_modules/md2gslides/node_modules/promise/lib/core.js:37:12)
at /usr/lib/node_modules/md2gslides/node_modules/promise/lib/core.js:123:15
at flush (/usr/lib/node_modules/md2gslides/node_modules/asap/raw.js:50:29)
at process._tickCallback (internal/process/next_tick.js:61:11)
Error: Unsupported inline HTML element: #comment
at inlineTokenRules.html_inline (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:274:23)
at processMarkdownToken (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:84:9)
at inlineTokenRules.inline (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:229:13)
at processMarkdownToken (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:84:9)
at processTokens (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:73:9)
at extractSlides (/usr/lib/node_modules/md2gslides/lib/extract_slides.js:61:5)
at SlideGenerator.generateFromMarkdown (/usr/lib/node_modules/md2gslides/lib/slide_generator.js:86:27)
at generateSlides (/usr/lib/node_modules/md2gslides/bin/md2gslides.js:179:27)
at tryCallOne (/usr/lib/node_modules/md2gslides/node_modules/promise/lib/core.js:37:12)
at /usr/lib/node_modules/md2gslides/node_modules/promise/lib/core.js:123:15
at flush (/usr/lib/node_modules/md2gslides/node_modules/asap/raw.js:50:29)
at process._tickCallback (internal/process/next_tick.js:61:11)
{}
I just wanted to test the feature of md2googleslides
from md2googleslides.
You should only need to authorize the tool once, and then it will re-use your tokens for later runs. Please open a new issue about the comment.
from md2googleslides.
You should only need to authorize the tool once, and then it will re-use your tokens for later runs.
Not for docker runs. Would you copy the credentials file as part of the container build, or something else?
from md2googleslides.
Yes, I guess you'd need to copy the saved credentials file along with the build.
from md2googleslides.
I believe this is solved and can be closed, I can see proper flag help in https://github.com/gsuitedevs/md2googleslides/blob/master/bin/md2gslides.js#L65 🤗
from md2googleslides.
Related Issues (20)
- Dependency Dashboard
- Thanks
- HTML Element: img
- file.io: Too many requests (429) HOT 2
- Feature Request: allow for having headers start at H2 or H3 instead of H1
- Project dead? HOT 4
- Getting a 'Error 400: invalid_request' on first invocation HOT 7
- [SyncRepoSettings bot] - Invalid config file
- Can't install on macOS 13 HOT 1
- I fixed all issues! Use my fork HOT 2
- I got this project working on macOS 13 but the owners of this repo won't merge the changes
- Mmwk
- this app tried to access sensitive info in your google account. to keep your account safe, google blocked this access HOT 1
- 2023 - is this Project Dead?
- Hhhh
- Is this still maintained? HOT 1
- ERR_INVALID_ARG_TYPE(name, 'string', value)
- error in documentation about code block font sizes
- 2fa? HOT 1
- Oauth blocked access HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from md2googleslides.