Convert a Google Drive Document to the Markdown format, suitable for publishing.
2,660
20 commits
updated Jul 4, 2018
A simple Google Apps script to convert a properly formatted Google Drive Document to the markdown (.md) format.
Adding this script to your doc (once per doc):
Running the script (run as many times as you want):
text[anchortext](url)*" Markdown format appropriately, including nested lists[[TOC]]<div class="whateverclassnameyouwant"></div><pre></pre><pre class="prettyprint"></pre><table> processing<testID>" is replaced by an iframe that shows an interactive chart of a JSPerf test. The <testID> is the last part of the URL of the Browserscope anchor in your JSPerf test. Something like "agt1YS1wcm9maWxlcnINCxIEVGVzdBjlm_EQDA" in the URL http://www.browserscope.org/user/tests/table/agt1YS1wcm9maWxlcnINCxIEVGVzdBjlm_EQDAUse this script at your will, on any document you want and for any purpose, commercial or not. The MarkDown files generated by this script are not considered derivative work and don't require any attribution to the owners of this script.
If you want to modify and redistribute the script (not the converted documents - those are yours), just keep a reference to this repo or to the license info below:
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
(top 24 of 59)
2,522 followers · starred Apr 2014
324 followers · starred Oct 2017
969 followers · starred Nov 2015
301 followers · starred May 2016
Convert a Google Drive Document to the Markdown format, suitable for publishing.
2,660
20 commits
updated Jul 4, 2018
A simple Google Apps script to convert a properly formatted Google Drive Document to the markdown (.md) format.
Adding this script to your doc (once per doc):
Running the script (run as many times as you want):
text[anchortext](url)*" Markdown format appropriately, including nested lists[[TOC]]<div class="whateverclassnameyouwant"></div><pre></pre><pre class="prettyprint"></pre><table> processing<testID>" is replaced by an iframe that shows an interactive chart of a JSPerf test. The <testID> is the last part of the URL of the Browserscope anchor in your JSPerf test. Something like "agt1YS1wcm9maWxlcnINCxIEVGVzdBjlm_EQDA" in the URL http://www.browserscope.org/user/tests/table/agt1YS1wcm9maWxlcnINCxIEVGVzdBjlm_EQDAUse this script at your will, on any document you want and for any purpose, commercial or not. The MarkDown files generated by this script are not considered derivative work and don't require any attribution to the owners of this script.
If you want to modify and redistribute the script (not the converted documents - those are yours), just keep a reference to this repo or to the license info below:
Copyright 2013 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
(top 24 of 59)
2,522 followers · starred Apr 2014
324 followers · starred Oct 2017
969 followers · starred Nov 2015
301 followers · starred May 2016