Commit Graph

80 Commits

Author SHA1 Message Date
Gabriel Horner
1f0e22275d Add ns docstrings for most ns in src/main
- Added to CI now that it passes
- Added no-doc for docstrings that don't add any more than what's in the
ns name or for ones where I didn't know the ns that well
2022-09-27 13:55:16 +08:00
Gabriel Horner
2ce6dfad41 Use catch :default for default error handling in cljs
This is considered normal practice for cljs. See
https://clojure.atlassian.net/browse/CLJS-661 for when it was introduced
and background on it
2022-09-23 02:00:55 +08:00
Gabriel Horner
ecce39d13b Misc cleanup and test improvements
- Remove incorrect carve entry
- Move test-only code for extract-properties to test
- Remove unused if branches in extract-properties
- Move json parsing of get-references into mldoc to be consistent about
  json encapsulation like other mldoc fns
- reorganize relevant unit tests
- add tests for alias, tags and comma separated config properties
- Update incorrect docstring
2022-09-14 23:26:00 -04:00
Tienson Qin
c376c408e0 fix: lint warnings in graph_parser 2022-09-09 12:37:57 +08:00
Tienson Qin
336fa578d5 refactor: replace directives(front matter or org) with properties 2022-09-09 12:37:55 +08:00
Gabriel Horner
22ddae8998 Move graph-parser related block code to proper ns and nbb migration wip 2022-05-12 16:57:28 -04:00
Gabriel Horner
65804b4183 Split out text ns to graph-parser 2022-05-10 20:22:48 -04:00
Gabriel Horner
67461aaede Necessary parts of mldoc are nbb compatible
Also merged in parser tests which were not running
2022-05-10 20:22:48 -04:00
Gabriel Horner
657bb09591 Add mldoc integration test and start mldoc split 2022-05-10 20:22:48 -04:00
Gabriel Horner
a58a411567 Move config fns and remaining util fns that mldoc depends on 2022-05-04 12:02:36 -04:00
Gabriel Horner
85bd1fecb2 Move first batch of util fns to graph-parser.util
Still need to fix external.roam
2022-05-04 12:02:36 -04:00
llcc
1361728457 fix #+keyword issues in orgmode (#4573)
* fix(orgmode): don't parse some in-file #+keyword as page properties

e.g. #+Name:, #+tblfm:, etc.

* enhance(orgmode): display image and table's caption keyword

https://orgmode.org/manual/Captions.html

* enhance(orgmode): ignore some #+keywords for parsing properties.

Orgmode uses lots of file level #+keyword: styled keywords[1].
Logseq parses their value as page references except `title` and
`filters`, which pollutes Logseq database.

Users can setup `:ignored-page-property-tags` in config.edn to
make Logseq not parsing those keywords.

[1]: https://orgmode.org/manual/In_002dbuffer-Settings.html.

* use take-while instead. Thanks tienson.

* comment out new settings

* revert some merge conflicts.
2022-03-16 17:10:49 +08:00
llcc
f02c21c95b fix: link property causes wrong pages creation 2022-03-08 14:16:28 +08:00
Tienson Qin
db7d1cde09 fix: CI tests and lint warnings 2022-02-24 16:35:26 +08:00
Tienson Qin
c678fa15e6 fix: can't parse graphs because of links regular expressions
close #4308
2022-02-24 16:35:26 +08:00
Tienson Qin
982eba9396 refactor: remove i18n tongue context 2022-02-08 17:31:32 +08:00
Tienson Qin
1870f44f9a fix lint warnings 2022-02-08 15:50:54 +08:00
Tienson Qin
faea913a40 enhance: cut memory usage 2022-02-08 15:49:09 +08:00
Andelf
e9ebf54ecb fix: wrong props filter with boolean and int
Fix #3944
2022-01-19 11:12:38 +08:00
Tienson Qin
9ad803b6b4 fix: wrong alias parsing 2022-01-17 11:03:56 +08:00
Tienson Qin
21f2237227 fix: lint errors 2022-01-16 13:06:54 +08:00
Tienson Qin
2401ce9e9a fix: property regression : # should be a delimiter
Close #3916

Tests added.
2022-01-16 12:39:41 +08:00
Gabriel Horner
b7b3375f62 Lint extensions/ and wrap up hanging frontend dirs
fs/, format/ and logseq/ also added to linting by adding todos for later
inspection
2022-01-12 16:38:17 -05:00
Gabriel Horner
7497d8b396 Lint a good chunk of src/main/frontend
Left some TODOs to discuss with others and others for me to finish
2022-01-11 17:34:54 -05:00
Tienson Qin
0e34c87eac enhance: report file path when parsing failed 2022-01-05 10:51:01 +08:00
llcc
fef5bbf068 enhance(clock): support recording in repeated block // cleanup unused namespaces (#2777)
* enhance(clock): support recording in repeated block

* cleanup: unused namespaces

* cleanup: missing-else-branch if --> when

* enhance: wider search results window for mobile browser

* fix: namespace requirement
2021-09-08 10:23:16 +08:00
Tienson Qin
422c2de99d enhance: better error report when parsing 2021-08-30 23:36:15 +08:00
leizhe
505cbfe39b feat(org): Implementation of Orgmode drawer
ref: https://orgmode.org/manual/Drawers.html
2021-08-25 17:41:20 +08:00
Tienson Qin
4c3bdb0bf3 feat: git integration 2021-08-24 21:42:46 +08:00
Tienson Qin
78a2dbd5dd chore: bump mldoc 2021-08-23 21:07:24 +08:00
Tienson Qin
e87f83c395 Use web workers to speed up parsing (#2655)
* wip: use web workers to speed up parsing

* chore: uncomment forget.config.js

* fix: parser pool initialization

* fix: extract parser-worker

* fix: can't run the parser worker in the release mode

* fix: extract async tests

* fix: dsl query async test

* fix: img path in dev mode
2021-08-18 17:02:40 +08:00
rcmerci
6a95533233 feat: support remove options when export
- remove [[]]
- remove emphasis
2021-07-30 12:31:51 +08:00
Tienson Qin
a449ca96ad fix: properties insert 2021-07-29 20:06:40 +08:00
Tienson Qin
cc948b5a23 fix: don't parse quoted string as page references for properties 2021-07-27 22:57:30 +08:00
Tienson Qin
c394534e48 fix: remove "" from page property if it's wrapped by "" 2021-07-27 22:20:53 +08:00
rcmerci
a2f32e0325 feat: block-level html export 2021-07-26 18:42:44 +08:00
Tienson Qin
0cbf80e661 fix: block properties should be shown in the same order when saving 2021-07-11 19:35:18 +08:00
rcmerci
b674cda211 feat: md export add indent-style 2021-07-07 22:03:57 +08:00
Weihua Lu
204541abda chore: clean up namespace, eliminate refer-macro 2021-06-21 08:13:49 +08:00
rcmerci
14719ff422 feat: support - ## like heading 2021-06-17 19:10:22 +08:00
rcmerci
b13572547d feat(opml): support opml import 2021-06-15 21:38:39 +08:00
Tienson Qin
b130f88bfc fix: code block editing issue 2021-06-11 00:12:03 +08:00
rcmerci
7fff4c9cb5 feat(export): replace embed & block-refs in opml 2021-06-07 19:17:55 +08:00
Tienson Qin
2dfe104b7c fix: rename parseHtml to exportToHtml 2021-06-07 15:18:57 +08:00
rcmerci
a268a179fd exported opml add title tag 2021-06-02 12:49:01 +08:00
rcmerci
41678d2767 feat: export page as opml 2021-06-02 12:49:01 +08:00
Tienson Qin
20626ef670 fix: nested pages refs not working in block properties 2021-05-26 12:56:06 +08:00
Tienson Qin
bd57a6ceb8 fix: converter choke on filters 2021-05-25 16:21:38 +08:00
Tienson Qin
52ef58b565 fix: page properties not working when extracting 2021-05-23 19:27:42 +08:00
Tienson Qin
d3b3f6f48e fix: properties inserted at wrong positions
Close #1952
2021-05-23 13:58:06 +08:00