Profile manager of text processing pipelines: Pandoc filters, any text CLI filters. Atom+Markdown+Pandoc+Jupyter workflow, export to ipynb. Uses Stitch fork: https://github.com/kiwi0fruit/knitty
MIT License
52
stars
9
forks
source link
switch to ipynb in pandoc 2.6, add cross pip-conda py-xx modules #35
[x] ~write that you can have bash in the activated env and Pandoctools would use it~
[x] ~in pandoctools search for bash with bat ext also (+fix cygpath search)~
[x] ~test how git-bash-win post install works when git:conda-forge is installed.~
[x] ~test if activation of env with git-bash-win from system bash overrides bash (bash.bat vs bash): not needed as bash.bat is invisible for bash~
[x] ~$(git --exec-path) was buggy because I ran installation from system git bash and maybe via call. TEST and echo path obtained from 'git' exec.~
[x] ~run .\git-bash...~
[x] ~first run of the batch.bat would echo unnecessary text.~
[x] ~reproduce program files git error at home, check that leftover files do not prevent reinstall, check that there's really no linking, try creaning pkgs/git-bash-win* before installing, Scripts\ dissappear even now. I guess it's a git-bash post-install bug (test it a lot!). Even when I fix post install then break it again and investigate Scripts dir disappearance.~
[x] ~Keep it simple. But also keep knotedown as it is now. input=True is also OK~
[x] ~make second positional arg support in knitty friendly to custom classes~
[x] ~add 2.6 py-pandoc to conda-forge~
[x] ~upd pandoc-crossref to pandoc 2.6 or add pandoc-crossref 0.3.4.0-2 with "pandoc>=2.5,<=2.6" as a half-measure (py-pandoc-crossref 0.3.4.0.2 with "py-pandoc>=2.5,<2.6.1"). That's bad but let it be.~
[x] ~fix where: so that it uses which on unix and can check .bat and .cmd also (exe_only: bool=True). (both in pandoctools and in knitty)~
[x] ~add pyppdf-replace-mathjax from pyppdf to pandoctools as python script. Rename Default.py to Default_mathjax.py ($mathjax) as putting all python helpers in one file is bad idea. There should be sub and sub_pdf functions there.~
[x] ~Temporary add panflute filter that iterates over images and converts them to pandoc -f json -t html --standalone --self-contained, regex takes <figure>...</figure>, puts inside ```{=html}\n...\n```. pandoctools.no_cell_attachments that can read --self-contained --standalone it doesn't need special folder!~
[x] ~GutHub now supports Pandoc attractive. Maybe Jupyter supporta too? Or test if other classes are stripped in code blocks in Markdown.~
```{.py .code .cell}
print(0)
[x] ~remove --to-ipynb from everywhere~
[x] ~remove post-knitty~
[x] ~set pandoctools version to 2.6~
[x] ~pandoc>=2.6 dep directly in pandoctools - needed for writeprotected user profile~
[x] ~remove pandoc-filter-arg from pandoctools~
~pandoctools should fall when anything falls in the profile... It should but I'm not going to implement it.~
~Move latex knotr logic to convert so that it would play with two different 'to'.~
~weaken pandoc dep in pandoctools~
~fix knitty eval option (should work on lang names not kernel names)~
---
eval:
py: True
pug: False
other: True
...
~move parts of knitty readme to pystitch~
~try https://github.com/necolas/normalize.css/ in pandoctools. Normalize or Reset CSS are usually part of most boilerplates. I think Bootstrap 4 uses a CES reset internally as well.~
guess_root_env
~$(git --exec-path)
was buggy because I ran installation from system git bash and maybe viacall
. TEST and echo path obtained from 'git' exec.~.\git-bash...
~pkgs/git-bash-win*
before installing,Scripts\
dissappear even now. I guess it's a git-bash post-install bug (test it a lot!). Even when I fix post install then break it again and investigate Scripts dir disappearance.~git-bash.exe --no-needs-console --hide --no-cd --command=post-install.bat
~--to-ipynb
from everywhere (README.md, click decorators)~knitty.self_contained_raw_html_img
to knitty docs~{chunk=None}
~knitty.self_contained_raw_html_img
to pandoctools~--to r.ipynb:markdown+xx
->--to r.ipynb+xx
~input=True
is also OK~0.3.4.0-2
with"pandoc>=2.5,<=2.6"
as a half-measure (py-pandoc-crossref0.3.4.0.2
with"py-pandoc>=2.5,<2.6.1"
). That's bad but let it be.~exe_only: bool=True
). (both in pandoctools and in knitty)~pyppdf-replace-mathjax
from pyppdf to pandoctools as python script. Rename Default.py to Default_mathjax.py ($mathjax
) as putting all python helpers in one file is bad idea. There should besub
andsub_pdf
functions there.~pandoc -f json -t html --standalone --self-contained
, regex takes<figure>...</figure>
, puts inside```{=html}\n...\n```
.pandoctools.no_cell_attachments
that can read--self-contained --standalone
it doesn't need special folder!~which=where
~--to-ipynb
from everywhere~pandoc>=2.6
dep directly in pandoctools - needed for writeprotected user profile~