File tree 4 files changed +11
-19
lines changed
4 files changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -50,20 +50,16 @@ let mldoc_object =
50
50
print_endline (Printexc. to_string error);
51
51
input
52
52
53
- method export getReferences config_json input =
53
+ method getReferences input config_json =
54
54
let str = Js. to_string input in
55
- try
56
- let config_json = Yojson.Safe. from_string config_json in
57
- match Conf. of_yojson config_json with
58
- | Ok config -> (
59
- let result = Mldoc.Property. property_references config str in
60
- Mldoc.Type. inline_list_no_pos_to_yojson result |> Yojson.Safe. to_string |> Js. string )
61
- | Error e ->
62
- print_endline e;
63
- input
64
- with error ->
65
- print_endline (Printexc. to_string error);
66
- input
55
+ let config_json = Js. to_string config_json in
56
+ let config_json = Yojson.Safe. from_string config_json in
57
+ match Conf. of_yojson config_json with
58
+ | Ok config -> (
59
+ let result = Mldoc.Property. property_references config str in
60
+ Mldoc.Type. inline_list_no_pos_to_yojson result |> Yojson.Safe. to_string |> Js. string )
61
+ | Error e ->
62
+ Js_of_ocaml.Js. string (" Config error: " ^ e)
67
63
68
64
method export to_format input config_json references =
69
65
let to_format = Js. to_string to_format in
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " mldoc" ,
3
- "version" : " 1.4.6 " ,
3
+ "version" : " 1.4.7 " ,
4
4
"description" : " Another Emacs Org-mode parser." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ let hashtag_name =
13
13
< |> ( take_while (fun c -> List. mem c tag_delims)
14
14
*> (satisfy is_space_eol *> return () < |> end_of_input)
15
15
*> return `Finish
16
- < |> (String. make 1 < $> not_one_of [ '#' ] >> | fun c -> `Continue c)
16
+ < |> (String. make 1 < $> not_one_of [ '#' ; ',' ; '!' ; '?' ; '\' '; '"' ; ':' ] >> | fun c -> `Continue c)
17
17
>> = fun r ->
18
18
match r with
19
19
| `Finish -> fail " hashtag_name_part finish"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments