https://github.com/cben/sandbox
testing github
https://github.com/cben/sandbox
Last synced: 12 months ago
JSON representation
testing github
- Host: GitHub
- URL: https://github.com/cben/sandbox
- Owner: cben
- Created: 2011-03-29T22:08:41.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2023-10-22T15:12:01.000Z (over 2 years ago)
- Last Synced: 2025-04-20T08:15:11.268Z (about 1 year ago)
- Language: TeX
- Homepage:
- Size: 270 KB
- Stars: 8
- Watchers: 3
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
---
[](https://github.com/cben/sandbox)
[](https://gitlab.com/cben/sandbox)
[](https://bitbucket.org/cbensf/test-math)
sandbox
=======
Dummy project to test various aspects of github / gitlab / bitbucket and integrations with it (e.g. Netlify).
Testing [abuse of relative links to link to issues](http://stackoverflow.com/a/20829706/239657): [#1](/../../issues/1).
## markdown
On Github Pages, README processed by Jekyll into https://cben.github.io/sandbox/README
- [ ] unchecked box
Another paragraph
- [x] checked box
- [ ] sub-TODO
- [x] sub-DONE
Inner paragraph
Outer paragraph
compare formatting to regular list:
- item
- sub-TODO
- sub-DONE
Inner paragraph
Outer paragraph
MathJax loaded in output via Jekyll template `_layouts/default.html`.
Delimiters [recognized by kramdown](http://kramdown.gettalong.org/syntax.html#math-blocks):
inline $$ \frac{kram}{down} \sum_0^\infty $$ text.
$$ \frac{kram}{down} \sum_0^\infty $$
The second is display math because it occurs alone in a block.
See also -> https://cben.github.io/sandbox/katex for using KaTeX instead of MathJax.
### Gitlab syntaxes
inline $`\frac{git}{lab} \sum_0^\infty`$ text.
```math
\frac{git}{lab} \sum_0^\infty
```
```mermaid
flowchart LR;
A-->B;
B-->C;
C-->D;
click A callback "Tooltip for a callback"
click B "https://github.blog/2022-02-14-include-diagrams-markdown-files-mermaid/" "This is a tooltip for a link"
click C call callback() "Tooltip for a callback"
click D href "https://gist.github.com/martinwoodward/8ad6296118c975510766d80310db71fd?permalink_comment_id=4066128#gistcomment-4066128" "This is a tooltip for a link"
```
```mermaid
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
commit
branch newbranch
checkout newbranch
commit
commit
checkout master
commit
commit
merge newbranch
```
### Single-dollar math?
- Is $\frac{tex}{math} \sum_0^\infty$ rendered?
- What about $10 to $20 prices?
- Adjacent text: non-$n^2$-secure ($n \log n$)?
- Whitespace inside: foo $ math $ bar?
### Linking to headers
#### Test explicit anchor {#test-anchor}
Does github support [explicit header anchors](https://talk.commonmark.org/t/anchors-in-markdown/247/28)?
[link to `#test-anchor`](#test-anchor) => No
Does GitHub [automatically generate ids for headers](https://talk.commonmark.org/t/feature-request-automatically-generated-ids-for-headers/115/80)? Yes — [doc](https://help.github.com/articles/basic-writing-and-formatting-syntax/#section-links)
- The links have no prefix: [link to `#linking-to-headers`](#linking-to-headers)
- However the actual anchor is prefixed `id="user-content-linking-to-headers"`! [link to `#user-content-linking-to-headers`](#user-content-linking-to-headers)
Interesting, this prefixed link scrolls to a slightly different place than `#linking-to-headers`.
I'm not sure how the unprefixed `#linking-to-headers` link works at all, perhaps by JS parsing the URL?
### Links in SVG?
img tag:
markdown image syntax: 
inline svg tag:
G
link
link
See also https://github.com/cben/sandbox/issues/8 — SVG links don't work in issue comments either.
### Right-to-left עברית
נזכיר שעקומה מסדר שני היא בעלת מבנה כללי.
$$a_{1,1}x^2+2a_{1,2}xy+a_{2,2}y^2+a_1x+a_2y+a=0$$
**תרגיל**. צייר את העקום $$.4x^2+2\sqrt{3}xy+2y^2-6=0$$
**פתרון** כדי להבין את מבנה העקום נאפס את המקדם של המונום $$xy$$ באמצעות טרנספורמציה מתאימה בין מערכות קורדינאטות. לפי הנוסחא שפיתחנו בהרצאה,תמיד ניתן לסובב את מערכת הקורדינאטות ב $$\theta$$ מעלות נגד כיוון השעון ולקבל מערכת מתאימה $$O'$$ שבה העקום הוא בעל צורה קנונית. ...
C-x M-c M-butterfly
## Nested fenced blocks
`````markdown
Foo:
```ruby
block.parents.map {|b| b.language}
```
bar.
`````
---
## This is a `##` header(?) prefixed with a space, let's see if it counts as header?
## LaTeX sync playground
As of 2015–2016 my recommendadion for collaborative LaTeX editing is [Overleaf](https://overleaf.com) (former WriteLaTeX).
It has real-time collaborative editing but you can also [work offline using Git][1].
For co-authors that want to work offline / use their favorite editor, but that don't want to learn Git, Github is a good place because any github repo can transparently also be cloned over SVN!
But then what if you want to also edit offline?
- You can push/pull local clone to both overleaf and github.
Tip: overleaf creates git commits when you save in overleaf UI, but also on demand when you `git fetch` / `git pull`. So `git fetch` frequently to force more history :-)
- https://ShareLaTeX.com supports direct github sync. (ShareLaTeX is mostly open source but this feature isn't.) TODO: try it.
- I've enabled github sync for this repo on Authorea.
**That's where all the .tex files come from** (and `layout.md` which is not really markdown but list of files).
[1]: https://www.overleaf.com/blog/195-new-collaborate-online-and-offline-with-overleaf-and-git-beta
P.S. shameless plug: if anybody is reading this and looking for collaborative *markdown* editing with math, try https://Mathdown.net.
----
- Testing push via svn with master configured "Protect this branch", "Include administrators".