fixed formatting
This commit is contained in:
+2
-2
@@ -39,7 +39,7 @@ walk_tree_and_get_md_names :: proc(path: string, allocator := context.allocator)
|
||||
}
|
||||
|
||||
// Skip files that are NOT .md files
|
||||
if !strings.has_suffix(info.name, MD_SUFFIX) { continue }
|
||||
if !strings.has_suffix(info.name, MD_SUFFIX) {continue}
|
||||
|
||||
append(&files, strings.clone(info.fullpath, allocator))
|
||||
}
|
||||
@@ -74,7 +74,7 @@ walk_tree :: proc(path: string) -> []u8 {
|
||||
return nil
|
||||
}
|
||||
|
||||
parse_file_md_to_html :: proc(filename: string, allocator := context.allocator) -> (parsed: string, err: os.Error) {
|
||||
parse_file_md_to_html :: proc(filename: string, allocator := context.allocator, ) -> (parsed: string, err: os.Error) {
|
||||
str := os.read_entire_file_from_path(filename, allocator) or_return
|
||||
root := cm.parse_document_from_string(string(str), cm.DEFAULT_OPTIONS)
|
||||
//root := cm.parse_document(raw_data(str), len(str), cm.DEFAULT_OPTIONS)
|
||||
|
||||
Reference in New Issue
Block a user